[Snippet] Modifying or Removing Product Tabs in Woocommerce

Here’s how to modify or remove product tabs Woocommerce.
Add the following code to your functions.php file.

add_filter('woocommerce_product_tabs', 'woo_remove_product_tabs', 98);
function woo_remove_product_tabs( $tabs ) { 
	unset( $tabs['description'] );      	        // Remove the description tab
	unset( $tabs['reviews'] ); 			// Remove the reviews tab
	unset( $tabs['additional_information'] );  	// Remove the additional information tab 
	return $tabs; 

This will remove all the tabs, modify to suit your requirements.


Author: Kieran Barnes

Kieran is a PHP developer with 15 years commercial experience. Specialist in WordPress, CakePHP, CubeCart and all things PHP.

2 thoughts on “[Snippet] Modifying or Removing Product Tabs in Woocommerce”

  1. Hi Kieran!
    Thanks for sharing this snippet.
    Is it possible to hide a tab if it’s void? I mean, if a tab has no content, is it possible to hide it?
    I hope so…
    Thanks in advance for reply.

  2. I just found it:
    add_filter( ‘woocommerce_product_tabs’, ‘description_tab’, 99 );
    function description_tab( $tabs ) {
    global $post, $product;
    $exists = sf_get_post_meta($post->ID, ‘sf_product_description’, true); //I used the one my template allows me to use
    if (empty($exists)) {
    return $tabs;

Leave a Reply

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