Home Plugin documentation Hooks and functions Filters pip/builder/locations
pip/builder/locations
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 manage where Pilo’Press builder is visible.
Default value: all available post types and taxonomies.
More information: the array’s structure should be as in ACF’s code (see more info here)
add_filter( 'pip/builder/locations', function ( $locations ) {
return array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'all',
),
),
array(
array(
'param' => 'taxonomy',
'operator' => '==',
'value' => 'all',
),
),
);
} );
Our home port
15 Rue Cavenne, 69007 Lyon
And from everywhere in the world thanks to Hangout and Skype !
Useful links