Home Plugin documentation Hooks and functions Filters pip/builder/locations

 

 

Here we go!

 

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',
            ),
        ),
    );
} );

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

or you think a specific topic deserve more informations?

 

Wave to bottom