Home Plugin documentation Hooks and functions Filters pip/layouts/thumbnail/file_path

 

 

Here we go!

 

pip/layouts/thumbnail/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 thumbnail files

<?php

add_filter( 'pip/layouts/thumbnail/file_path', function( $path, $field_group ) {
    $layout_slug = acf_maybe_get( $field_group, '_pip_layout_slug' );

    return PIP_THEME_LAYOUTS_PATH . $layout_slug . '/' . $layout_slug;
}, 10, 2 );

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

or you think a specific topic deserve more informations?

 

Wave to bottom