How to add meta_query to the main products query?
-
Hi.
I added a check box to show or hide certain products from the loop.
I already modified some of the templates shortcodes to use the meta_query parameter, however I do NOT WANT to modify the core Woocommerce files.Is there a way to hook the $args[‘meta_query’] = array(…) to every query made on is_tax(‘product_cat’) and is_tax(‘product_tag’) ?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add meta_query to the main products query?’ is closed to new replies.