remove_action is not working with some hooks
-
Hi everyone,
Not sure if my issue is a glitch or I am missing something, here is the details:
I am using a child theme to customize storefront theme, great clean theme btw. That said, when trying to remove actions to remove some of the default sections from homepage it doesn’t work, I am trying to remove the “On Sale” and “Best Sellers” sections, using the following code:
remove_action( 'homepage', 'storefront_on_sale_products', 60 ); remove_action( 'homepage', 'storefront_best_selling_products', 70 );
both are not working, I tried using different priorities, without any luck, is this a bug to report or something needs to be done differently, please assist, thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘remove_action is not working with some hooks’ is closed to new replies.