Answer the question
In order to leave comments, you need to log in
WooCommerce how to unhook events from a hook?
Good afternoon, in WooCommerce where the product is displayed, there is such a hook
/**
* Hook: woocommerce_before_main_content.
*
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
* @hooked woocommerce_breadcrumb - 20
* @hooked WC_Structured_Data::generate_website_data() - 30
*/
do_action( 'woocommerce_before_main_content' );?>
Answer the question
In order to leave comments, you need to log in
Kind.
So?
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question