Created
December 9, 2024 15:24
-
-
Save mommaroodles/0ea104d305c25e5170ef5f68a7139d54 to your computer and use it in GitHub Desktop.
Remove Woocommerce breadcrumbs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_get_breadcrumb', 'remove_shop_crumb', 20, 2 ); | |
function remove_shop_crumb( $crumbs, $breadcrumb ){ | |
foreach( $crumbs as $key => $crumb ){ | |
if( $crumb[0] === __('Shop', 'Woocommerce') ) { | |
unset($crumbs[$key]); | |
} | |
} | |
return $crumbs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment