Snippets: Remove Woo Shop Page from Breadcrumbs

function myprefix_breadcrumbs_trail( $trail ) {

    // Remove cart from trail
    unset( $trail['shop'] );

    // Return trail
    return $trail;

}
add_filter( 'wpex_breadcrumbs_trail', 'myprefix_breadcrumbs_trail', 20 );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)