plugin inserts itself to archive pages
-
Hi there,
I’m setting up a woocommerce webstore and installed your plugin to be able to search product tags.
My problem is that though I inserted the shortcode to only one specific page, your plugin seems to have inserted itself somehow to all product-archive pages (not the original wp-archive pages), including the store home page. I checked the original theme’s archive template and the wc archive template but I don’t see anything that would explain that behavior.
My guess (based on the position on the pages) is it is somehow automatically hooked to the woocommerce_before_shop_loop hook, and I tried to remove it through functions php,remove_action( ‘woocommerce_before_shop_loop’, ‘woo_advance_search’ );
but it didn’t work.
Could you help me please to solve this?
thanks
EDIT
Meanwhile I’v found this in your class-woo-advance-search.php:
$this->loader->add_action( ‘woocommerce_before_shop_loop’, $plugin_public, ‘woo_advance_search_shortcode’, 30 );
and tried this
remove_action( ‘woocommerce_before_shop_loop’, ‘woo_advance_search_shortcode’, 30 );
didn’t work either.
- The topic ‘plugin inserts itself to archive pages’ is closed to new replies.