Remove Product Tabs

In this tutorial I will show you different ways how you can remove product tabs from WooCommerce product pages.

Here they are:

WooCommerce product tabs
Here you see default tabs – “Description”, “Additional information” and “Reviews” and some custom tabs we created in another tutorial.

We are not going to use any plugins, because using plugins for such a simple thing is really a weird idea. Yes, and we are not doing it with CSS either.

How to Remove Description Tab

Before I will provide you a code snippet that actually removes the Description tab from product pages, I would like to remind you that this tab displays the main content of the product, so the tab won’t be displayed if the main content area is empty.

How to hide Description tab without code in WooCommerce
The easiest way to hide “Description” tab is to remove the product content.

But if you want to completely disable “Description” tab, I would suggest you to use a code snippet for that. You can insert it to your current theme functions.php file or to a child theme’s functions.php if your current theme gets updates from time to time.

/**
 * Remove Description tab
 *
 * @author Misha Rudrastyh
 * @url https://rudrastyh.com/woocommerce/remove-product-tabs.html#remove-description
 */
add_filter( 'woocommerce_product_tabs', 'misha_remove_description_tab' );

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

You should also know something about the hook priority. You have to use a value 10 (which is default) or higher. If you decide to use the value below 10, then nothing will work.

So, here is the result.

Remove description tab WooCommerce

How to Remove Additional Information Tab

“Additional Information” tab is needed to display product attributes, so first of all you can easily hide this tab for a particular product if you remove its attributes.

Remove product attribute in WooCommerce
Additional Information tab will disappear for this specific product.

But now let’s remove additional information tab for all the products with the help of the code snippet below.

/**
 * Remove Additional Information tab
 *
 * @author Misha Rudrastyh
 * @url https://rudrastyh.com/woocommerce/remove-product-tabs.html#remove-additional-information
 */
add_filter( 'woocommerce_product_tabs', 'misha_remove_additional_information' );
function misha_remove_additional_information( $tabs ) {
	unset( $tabs[ 'additional_information' ] );
	return $tabs;
}

We can also combine it with the snippet that removes Description tab the following way:

add_filter( 'woocommerce_product_tabs', 'misha_remove_product_tabs' );
function misha_remove_product_tabs( $tabs ) {
	
	unset( $tabs[ 'description' ] );
	unset( $tabs[ 'additional_information' ] );
	
	return $tabs;
}

The result will be like.

remove multiple product tabs in WooCommerce

Remove Reviews Tab

Before we dive into the code, I can say, that there are a lot of ways to turn off reviews in WooCommerce settings. We can disable reviews for a specific product and for all the products. Once reviews is disabled, the Reviews tab will be removed automatically.

Turning off reviews for a specific product:

turn off reviews for a specific product WooCommerce
Just uncheck this checkbox and the Reviews tab will disappear for this particular product.

Or you can also do it globally for all products in WooCommerce settings:

Enable or disable WooCommerce product reviews globally

If doing it in settings is not what you need, here is a code solution as well.

/**
 * Disable Reviews tab
 *
 * @author Misha Rudrastyh
 * @url https://rudrastyh.com/woocommerce/remove-product-tabs.html#remove-reviews
 */
add_filter( 'woocommerce_product_tabs', 'misha_remove_reviews_tab' );
function misha_remove_reviews_tab( $tabs ) {
	unset( $tabs[ 'reviews' ] );
	return $tabs;
}

That’s it! The same way can be removed custom product tabs, you just need to find out their slugs to use inside unset( $tabs[ 'custom_tab' ] ).

Remove All Product Tabs

The code below will remove all WooCommerce product tabs from product pages – both default and custom tabs.

add_filter( 'woocommerce_product_tabs', '__return_empty_array' );

But the only thing you have to keep in mind – if this code doesn’t work for a custom tab, that means it was created with a higher priority than 10. If you still want to remove it, just increase the priority number in the filter hook.

add_filter( 'woocommerce_product_tabs', '__return_empty_array', 9999 );
Misha Rudrastyh

Misha Rudrastyh

Hey guys and welcome to my website. For more than 10 years I've been doing my best to share with you some superb WordPress guides and tips for free.

Need some developer help? Contact me

Follow me on Twitter