Sometimes you don’t need product tabs in WooCommerce. Sometimes to design and increase the user experience you have to know how to remove product tabs in WooCommerce on the WordPress website. To remove product tabs, follow the below steps.
WooCommerce default product tabs are “Description”, “Aditional Information” and “Reviews” tabs.
Remove Product Description Tab
The “Description” tab displays the main content area of the product.
To remove the tab open the “functions.php” file of your theme and add the below code.
add_filter( 'woocommerce_product_tabs', 'hs_remove_description_tab', 11 );
function hs_remove_description_tab( $tabs ) {
unset( $tabs['description'] );
return $tabs;
}
Remove Additional Information Tab
This tab displays product attributes.
add_filter( 'woocommerce_product_tabs', 'hs_remove_additional_information' );
function hs_remove_additional_information( $tabs ) {
unset( $tabs['additional_information'] );
return $tabs;
}
Remove Reviews Tab
This tab displays customers reviews. You can hide this tab by disabling the product reviews on the product edit page or you can also do it globally for all products in WooCommerce settings.
If you still want to disable this tab by coding, here is the code.
add_filter( 'woocommerce_product_tabs', 'hs_remove_reviews_tab' );
function hs_remove_reviews_tab( $tabs ) {
unset( $tabs['reviews'] );
return $tabs;
}