mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
https://stackoverflow.com/questions/69799811/remove-breadcrumbs-from-checkout-page-storefront-theme-woocommerce
7 lines
262 B
Text
7 lines
262 B
Text
add_action( 'storefront_before_content', 'wc_remove_storefront_breadcrumbs_checkout', 1 );
|
|
|
|
function wc_remove_storefront_breadcrumbs_checkout() {
|
|
if ( is_checkout() ) {
|
|
remove_action( 'storefront_before_content', 'woocommerce_breadcrumb', 10 );
|
|
}
|
|
}
|