Snippets: 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 a child theme's functions.php file.