Create a gist now

Instantly share code, notes, and snippets.

WooCommerce - remove breadcrumbs
add_action( 'init', 'jk_remove_wc_breadcrumbs' );
function jk_remove_wc_breadcrumbs() {
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
davemac commented Oct 17, 2016

If you want to add conditionals to this, such as only removing the breadcrumb on a single product page, then adding the hook to the 'template_redirect' actions instead works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment