Home Plugin documentation Hooks and functions Filters pip/layouts/always_show_collection



Here we go!



Heads up!

This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don’t provide support for code customizations or 3rd party development.

This filter allows you to always show collection badge (otherwise it’s only displayed if there are 2 layouts with the same title).


Default value: false


Expected return value type: bool

add_filter( 'pip/layouts/always_show_collection', function ( $bool ) {
    return false;
} );

You didn’t find the answer you were looking for?

or you think a specific topic deserve more informations?


Wave to bottom