Ние създаваме уебсайтове за теб и твоят бизнес. За информация и запитвания: +359 876 700 417

How to Remove Specific Product Tabs in WooCommerce

04.03.2020

How to Remove Specific Product Tabs in WooCommerce

If you want to remove some of the product tabs on your WooCommerce website, you can manually add this functionality to your WordPress theme.

This small code snippet, will help you to remove specific product tabs in WooCommerce.

function wc_remove_product_tabs( $tabs ) {
   // remove the description tab
   unset( $tabs['description'] );
   
   // remove the reviews tab
   unset( $tabs['reviews'] );
   
   // remove the additional information tab
   unset( $tabs['additional_information'] );
   
   return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'wc_remove_product_tabs', 99 );

To add the functionality manually, you will need to copy and paste this code snippet in to your functions.php file of your WordPress child theme.

IMPORTANT: Aways use a child theme in WordPress!

English , ,
Контакти
гр. София
+359 876 700 417
Cart