Skip to content

Snippet: Remove “Cart” from breadcrumbs

function my_breadcrumbs_trail( $trail ) {

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

    // Return trail
    return $trail;

}
add_filter( 'wpex_breadcrumbs_trail', 'my_breadcrumbs_trail', 20 );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top