mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
5 lines
178 B
Text
5 lines
178 B
Text
function wc_remove_shop_from_breadcrumbs( $trail ) {
|
|
unset( $trail['shop'] );
|
|
return $trail;
|
|
}
|
|
add_filter( 'wp_breadcrumbs_trail', 'wc_remove_shop_from_breadcrumbs', 20 );
|