How to Remove a Tab from WooCommerce

How to Remove a Tab from WooCommerce featured image
(Last Updated On: December 13, 2017)

Have you ever wanted to remove a particular tab, or tabs, from your WooCommerce store?

The snippet below will allow you to do just that, from your theme’s functions.php file.

Remove Tabs from WooCommerce

Add the snippet below to your child theme’s functions.php file. Be sure to remove the tabs you wanted (the code below will remove all three tabs: description, reviews and additional information) – it seems likely you won’t want to remove all three. Or maybe you do? If so, leave ’em all in there!

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;

}

Leave a comment below if this helped or didn’t work to remove a tab or tabs from WooCommerce.

Leave a Reply

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

Silicon Dales