Woocommerce remove tabs on product page


I almost get rid of all the bugs by scrolling around the forum but there’s Something I can’t do by myself. On woocommerce, product page, I would like to remove the default tabs (product description, infos and reviews).
I use a plugin to create my own tabs with different header and title for different products, but I would like to remove the default tabs.

I tried to put the following code in my simple custom css, but didn’t work :

function woo_remove_product_tab($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;


add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tab’, 98);

Thank’s in advance for your answer

Hello there,

The code you shared isn’t CSS code, but PHP code. To run custom PHP code on your site, you’ve to put it into child theme’s functions.php file. If you haven’t yet been running a child theme, alternatively you can use the My Custom Functions plugin.


Hey Kharis… I solved like 90 bugs reading your answer on this forum, You’re the boss.

Thank you very much

You’re most welcome.

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.