Sometimes our customers need to remove the unused data tabs for the single product for WooCommerce plugin.
Below you may find the instruction on how it can be achieved.
- Access your theme files any convenient way (CPanel or any FTP-client).
- Find the file: \wp-content\themes\native\functions.php
- Open it in a text editor.
- Find the following lines in this file:
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] );
unset( $tabs['reviews'] );
unset( $tabs['additional_information'] );
return $tabs;
}
- Comment the following lines.
//unset( $tabs['description'] ); //unset( $tabs['reviews'] ); //unset( $tabs['additional_information'] );
- So as the result you’ll get the following lines.
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
//unset( $tabs['description'] );
//unset( $tabs['reviews'] );
//unset( $tabs['additional_information'] );
return $tabs;
}
- Save the modifications done.
Regards, DFD Support Team

