Home Plugin documentation Hooks and functions Filters pip/shortcode/breadcrumb

 

 

Here we go!

 

pip/shortcode/breadcrumb

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 change the function used in shortcode pip_breadcrumb

add_filter( 'pip/shortcode/breadcrumb', function ( $breadcrumb ) {

    // Example: Set a custom breadcrumb
    $home_url   = get_home_url();
    $breadcrumb = "<a href='$home_url'>" . __( 'Home' ) . '</a> > <span>' . __( 'My custom breadcrumb' ) . '</span>';
    return $breadcrumb;

}, 10, 1 );

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

or you think a specific topic deserve more informations?

 

Wave to bottom