Woocommerce exclude products from shop – workshops
Hi I’m trying to remove 2 categories from the shop landing page using a PHP snippet from woocommerce. https://docs.woocommerce.com/document/exclude-a-category-from-the-shop-page/ The 2 product categories/slugs are events and workshops The snippet is here: /** * Exclude products from a particular category on the shop page */ function custom_pre_get_posts_query( $q ) { $tax_query = (array) $q->get( ‘tax_query’ ); … Read more