WooCommerce: Remove a Tab @ Single Product Page

There are ways to completely remove the WooCommerce Single Product page tabs, but in case you wish to remove only one of them, these easy snippets will teach you how to do just that.

For example, you may want to hide the “Reviews tab because you don’t want to enable product feedback. Or maybe you would like to hide the “Additional Information” tab, because you don’t need that information to be seen.

Either way, it’s super easy – enjoy!

You could remove all WooCommerce product tabs… or instead hide a single tab. In this case scenario we’ll take a look at the second option!

PHP Snippet 1: Hide “Description” Tab @ WooCommerce Single Product Page

/**
 * @snippet       WooCommerce Remove Description Tab
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/
 */
 
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_desc_tab', 9999 );

function bbloomer_remove_desc_tab( $tabs ) {
   unset( $tabs['description'] );
   return $tabs;
}

PHP Snippet 2: Hide “Additional Information” Tab @ WooCommerce Single Product Page

/**
 * @snippet       WooCommerce Remove Additional Info Product Tab
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/
 */
 
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_info_tab', 9999 );

function bbloomer_remove_info_tab( $tabs ) {
   unset( $tabs['additional_information'] );
   return $tabs;
}

PHP Snippet 3: Hide “Reviews” Tab @ WooCommerce Single Product Page

/**
 * @snippet       WooCommerce Remove Reviews Product Tab
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/
 */
 
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_reviews_tab', 9999 );

function bbloomer_remove_reviews_tab( $tabs ) {
   unset( $tabs['reviews'] );
   return $tabs;
}

Bonus PHP Snippet: Hide Tab Only For a Specific Product Category @ WooCommerce Single Product Page

/**
 * @snippet       WooCommerce Remove Product Tab If Given Category
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/
 */
 
add_filter( 'woocommerce_product_tabs', 'bbloomer_remove_tab_if_cat', 9999 );

function bbloomer_remove_tab_if_cat( $tabs ) {
   if ( has_term( 'tables', 'product_cat' ) ) {
       unset( $tabs['reviews'] ); // remove reviews for tables
   }
   return $tabs;
}

Advanced Plugin: WooCommerce Product Tabs

In case you’re not very confident adding code snippets to your site, then I also did some research on the best plugin solutions that will achieve the same result. For a plugin option, I recommend that you install the WooCommerce Product Tabs plugin.

This plugin by the team at Barn2 gives you full control over the content and visibility of your WooCommerce product page tabs. You can rename each tab, add an icon, or tick a box on the settings page to hide it completely. It’s also possible to add your own custom tabs, for example if you want to replace the default tabs with your own new ones.

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

  • WooCommerce Visual Hook Guide: Single Product Page
    Here’s a visual hook guide for the WooCommerce Single Product Page. This is part of my “Visual Hook Guide Series“, through which you can find WooCommerce hooks quickly and easily by seeing their actual locations (and you can copy/paste). If you like this guide and it’s helpful to you, let me know in the comments! […]
  • WooCommerce: Disable Variable Product Price Range $$$-$$$
    You may want to disable the WooCommerce variable product price range which usually looks like $100-$999 when variations have different prices (min $100 and max $999 in this case). With this snippet you will be able to hide the highest price, and add a “From: ” prefix in front of the minimum price. At the […]
  • WooCommerce: Hide Price & Add to Cart for Logged Out Users
    You may want to force users to login in order to see prices and add products to cart. That means you must hide add to cart buttons and prices on the Shop and Single Product pages when a user is logged out. All you need is pasting the following code in your functions.php (please note: […]
  • WooCommerce: Add Custom Field to Product Variations
    Adding and displaying custom fields on WooCommerce products is quite simple. For example, you can add a “RRP/MSRP” field to a product, or maybe use ACF and display its value on the single product page. Easy, yes. Unfortunately, the above only applies to “simple” products without variations (or the parent product if it’s a variable […]
  • WooCommerce: Show Number Of Products Sold @ Product Page
    WooCommerce database already stores the number of products sold for you. Therefore, you may want to show such number on the product page, close to the Add To Cart button. As we’ve seen in my book Ecommerce and Beyond, showing the number of sales for each product can increase your sales conversion rate. All you […]

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

10 thoughts on “WooCommerce: Remove a Tab @ Single Product Page

  1. Hi, how can I hide the tab on a specific product? I want it on all the products on our store except for one product ID.

    Thanks!

    1. Hey Matt, I suggest you take a look at “conditional logic”: https://businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/. Enjoy 🙂

  2. Worked. Thanks

    1. Great!

  3. Totaly worked. I was also able to remove the description.

    1. Great!

  4. I tried this, but it just doesnt remove the additional information tab.

    Can you please help?

    1. Hello John, I just tested this again with Storefront theme and it works perfectly. Maybe your theme (or another plugin) is messing/conflicting with my snippet?

      To troubleshoot, disable all plugins but WooCommerce and also switch temporarily to “Twentyseventeen” theme (load the snippet there in functions.php) – does it work? If yes, you have a problem with your current theme or one of the plugins.

      Hope this helps!

      R

  5. Totally worked – thank you so much…

    Just one comment – my child theme had its own functions file – but whilst there was an opening tag – so I just added the code at the end of the file.

    1. Excellent 🙂

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *