How to hide or remove Product tabs in WooCommerce?

Updated on September 2, 2017

Just a day before I wrote a tutorial on how to rename additional information tab in WooCommerce. But the case is different today, as one of my client wants me to hide or remove the product tabs completely on a single product page. So if you ever want to remove those tabs displayed in WooCommerce product page, then here’s how you can do that.

All you need is to copy and paste the below code in your theme’s function.php file. Once done, jump to the product page and refresh to see the change.

Note: The snippet will only remove the default tabs such as ‘description, reviews and additional information’ from product page. But any custom tabs created using plugin such as ‘YIKES Custom Product Tabs for WooCommerce’ are not touched.

remove woocommerce product tabs

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

Was this article helpful?

Related Articles

Leave a Comment