You can paste the following snippet in your child theme’s functions.php
function exclude_specific_tag( $q ) {
if (is_shop()){
$tax_query = (array) $q->get( 'tax_query' );
$tax_query[] = array(
'taxonomy' => 'product_tag',
'field' => 'slug',
'terms' => array( 'pré-commande' ), // write the tag name to remove in between the ''
'operator' => 'NOT IN'
);
$q->set( 'tax_query', $tax_query );
}
}
add_action( 'woocommerce_product_query', 'exclude_specific_tag' );
Related Posts:
- Product categories don’t appear as option to build menu
- Woocommerce show cross sells on singe product page [closed]
- How to turn off WooCommerce user registration and manually create accounts?
- Search results don’t show products
- Change WooCommerce Image Size in One Product CAtegory
- Is there a way to get customers logged out without calling wp-login.php?
- How to filter Post using Meta Data REST API
- WooCommerce checkout: How can I change $field_container of a checkout field?
- Woocommerce Shop Price Position
- How to disable users from editing billing address in WooCommerce checkout?
- Move WooCommerce product tabs out of the tabs [closed]
- Is it possible to recalculate cart prices? [closed]
- Woocommerce: Get Cart ID
- Woocommerce – remove sale price field from dashboard [closed]
- How do I hide the purchase note in the WooCommerce ‘order completed’ email?
- Woocommerce – Override the default templates location under the theme directory
- How to hide out of stock products in Related Products via custom query in WooCommerce
- Changing Woocommerce language without changing the language in Dashboard admin WordPress
- WooCommerce Country Drop Down colours CSS [closed]
- Fatal error: Call to undefined method WooCommerce::nonce_field()
- Where do I find where woocommerce stores product data in cpanel file manager?
- Woocommerce wp-admin search products through custom meta value too
- How to add a custom text for order confirmation email template woocommerce
- I want to get the value of a select attribute in the checkout page, and then use it to show or not the delivery data
- woocomerce is serving OR Relation instead of AND on taxonomy product_tag
- Woocommerce Subscriptions – Set Billing Interval/Period
- WooCommerce with ACF: custom fields per product variation
- Woocommerce checkout page reload on up dating shipping method
- change wp_login url and redirect users at the same time
- How to display text between product thumbnail and CTA button on WooCommerce “Shop” page
- Multiple archive product exist
- call_user_func_array() error in class-wp-hook.php
- Error after woocommerce update from 2.6 to 3.5 [closed]
- Send billing info from woocommerce checkout page to paypal checkout form
- Check if a category has a parent category in WooCommerce REST API
- How to – proper WordPress 301 redirects?
- how to create additional button on single product page
- Woocommerce check if email already created order recently [closed]
- Pass class to Woocommerce shortcode [relative_products] [closed]
- Woocommerce product editor does not add br
- How can I remove a WooCommerce Product Tab’s sub section in wp-admin?
- is_shop doesn’t work for woocommerce [closed]
- How can I edit the Woocommerce product widget html class?
- Can’t show Woocommerce product category description
- Create new email in WooCommerce
- How to edit the default woo-commerce Store page meta title tag “Products”
- Unable to add product to the cart
- How to create a WooCommerce Product filter based on PHP foreach
- Custom Email via Hook only for completed order
- Woocommerce : Add name filed of checkout page to buyers wordpress display name
- Changing Title Tag on Shop Archive Page (current solution reverting to Title of First Product in Loop)
- WooCommerce return 404 in the product page
- How to remove Calendar on Woocommerce Category Pages
- What is the meta_key for woocommerce discount amount?
- Delete comma in front of currency woocommerce
- Not displaying Category and subcategory from woocommerce Pluign
- Collapsible product categories on sidebar?
- currentURL is not defined
- Adding a second button next to the shop button Woocommerc [closed]
- How to set subcategory in Woocommerce?
- Woocommerce – How to Show product tags in shop page
- Bulk edit orders to ‘wc-processing’ status
- Woocommerce REST API not considering discounts and coupons
- Multiple sorting criteries (order by)
- Woocommerce Order Reports MYSQL
- woocommerce price filter not working when change currency
- With what hook do I remove WooCommerce existing Product Data Tab form fields?
- After update Woocommerce shop page not showing products
- Add youtube embed to woocommerce variations
- WooCommerce – Large number of product variations (200+)
- Add custom link/pop up under variations dropdown
- Problem in woocommerce.The option “Add product image” is gone.Please help me!
- Woocommerce: Some action hooks not firing inside class [closed]
- Is it possible Different templates of products for specific category in WooCommerce?
- WooCommerce: Conditional Tag for Wishlist Page
- Display x number of terms and exclude hidden
- Hide woocommerce login form
- Allow authors to use their own PayPal account and payment process automation [closed]
- How to move WooCommerce Product Data Box below Title Box in Edit
- Can a woocommerce hook alter the UI of a website?
- How to show Woocommerce add to cart form for variable product on custom location [closed]
- Adding more information to a Content Product Category
- Woocommerce | Product page seems differently on my 2 websites
- dakon show vender address on checkout page
- Adding total_sales to Grouped Product within WooCommerce
- Membership website with discount on scheduled appointment
- Woocommerce: how to make only certain products shippable?
- Customer email notification upon order update in woocommerce
- How can i hide a specific class when cart subtotal is above a certain amount
- Update WooCommerce Short Description using SQL
- acf_form() – “On Update” action [closed]
- Trying to insert a div ID link into Woocommerce shortcode Pagination
- Remove login fields from /customer-account page [closed]
- Set single product image (main image) and archive thumbnail image as different from each other in Woocommerce
- WooCommerce Simple Auction and delayed capture
- How do I fix this “Uncaught ReferenceError: woodmartThemeModule is not defined”?
- How can I solve WordPress error “Cannot load product_attributes” and “Cannot load product-reviews”?
- How to get all child categories of current parent category in product detail page of woocommerce? [closed]
- Mandatory Fields For WooCommerce Products Before Publishing
- In woo commerce , Products change back to “Draft” from “published” automatically after it is purchased on the woo commerce shop page.Theme WP rentals [closed]