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 5
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
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 5
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
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 5
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
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 5
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
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;
}

Where to add custom code?

You should place PHP snippets at the bottom of your child theme functions.php file and CSS at the bottom of its style.css file. Make sure you know what you are doing when editing such files - if you need more guidance, please take a look at my guide "Should I Add Custom Code Via WP Editor, FTP or Code Snippets?" and my video tutorial "Where to Place WooCommerce Customization?"

Does this snippet (still) work?

Please let me know in the comments if everything went as expected. I would be happy to revise the snippet if you report otherwise (please provide screenshots). I have tested this code with Storefront theme, the WooCommerce version listed above and a WordPress-friendly hosting.

If you think this code saved you time & money, feel free to join 17,000+ WooCommerce Weekly subscribers for blog post updates and 250+ Business Bloomer supporters for 365 days of WooCommerce benefits. Thank you in advance!

Need Help with WooCommerce?

Check out these free video tutorials. You can learn how to customize WooCommerce without unnecessary plugins, how to properly configure the WooCommerce plugin settings and even how to master WooCommerce troubleshooting in case of a bug!

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.

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? Support? Leave your Comment Now!
_____

If you are writing code, please wrap it between shortcodes: [php]code_here[/php]. Failure to complying with this (as well as going off topic, not writing in English, etc.) will result in comment deletion. 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 BloomerArmada to get blog comment reply priority, ask me 1-to-1 WooCommerce questions and enjoy many more perks. Thank you :)

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