How to Disable Reviews Tab from WooCommerce

How to Disable Reviews Tab from WooCommerce

Each WooCommerce installation will have the reviews tabs added to individual product pages. I noted that people are wanting to know how to turn this functionality off or If you are selling something which doesn’t needs this feature, you can easily remove the WooCommerce reviews tab off as reviews don’t really apply to all products in all shops. Adding this code to your theme functions.php file will remove the reviews tab.

add_filter( 'woocommerce_product_tabs', 'fst_woo_remove_reviews_tab', 98);
function fst_woo_remove_reviews_tab($tabs) {
unset($tabs['reviews']);
return $tabs;
}

And if you just want to Rename the text in review tab simply copy paste the following code to your theme’s functions.php

add_filter( 'woocommerce_product_tabs', 'fst_woo_rename_reviews_tab', 98);
 function fst_woo_rename_reviews_tab($tabs) 
{ 
$tabs['reviews']['title'] = 'My Title'; 
return $tabs; 
}

Author

Hi! I'm a developer/designer & WordPress enthusiast. I have been using WordPress for the last 5 years and developed many plugins and open source projects.

Leave a Reply

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