Home Plugin documentation Hooks and functions Filters pip/layouts/file_path
pip/layouts/file_path
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 customize the file path for layouts template files
<?php
add_filter( 'pip/layouts/file_path', function( $path, $field_group ) {
$layout_slug = acf_maybe_get( $field_group, '_pip_layout_slug' );
return PIP_THEME_LAYOUTS_PATH . $layout_slug . '/';
}, 10, 2 );
Our home port
15 Rue Cavenne, 69007 Lyon
And from everywhere in the world thanks to Hangout and Skype !
Useful links