Home Plugin documentation Hooks and functions Filters pip/flexible/layouts/icons/hide

 

 

Here we go!

 

pip/flexible/layouts/icons/hide

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 choose icons to hide above layouts in Pilo’Press flexible content field. If there’s hidden icons, a “More action” icon will be added automatically

<?php

add_filter( 'pip/flexible/layouts/icons/hide', function( $hidden_icons, $icons, $layout, $field ) {
    return array
            (
                'add',
                'copy',
                'edit-pip-layout',
            );
}, 10, 4 );

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

or you think a specific topic deserve more informations?

 

Wave to bottom