Woocommerce

WooCommerce: How to Disable/Enable Product Review Tab

Written by Muhammad Alauddin

If you are using WooCommerce plugin for an online store , it is hard to avoid customization, a lots of it.You guessed it, disable and hide so many options. You may want to hide or remove the reviews tab on the WooCommerce Product Page.

Method 1:

In order to remove Reviews for this single product only, navigate to the Dashboard> Products section. Uncheck ‘Allow Comments’ box there and update the changes:

 

 

Method 2:

Use a WordPress Plugin Called : Disable Comments

Disable Comments

Install this plugin from your Dashboard and activate this

 

 

After Activating the Plugin, you will have Following Options. Check the Products under “On certain post types:” And click Save.

 

 

Method 3:

Go to Dashboard> Appearance> Editor> functions.php file and Add the following code

1

2

3

4

5

6

7

8

9

10

// Disable product review (tab)

function woo_remove_product_tabs($tabs) {

unset($tabs[‘description’]);     // Remove Description tab

unset($tabs[‘additional_information’]);   // Remove Additional Information tab

unset($tabs[‘reviews’]); // Remove Reviews tab

 

return $tabs;

}

 

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

 

 

To hide just reviews tab, you guessed it, keep line 5, and comment out line 3 & 4.

About the author

Muhammad Alauddin

I'm Muhammad Alauddin, a Full Stack Web Developer, and Sr Search Engine Optimizer.

Leave a Comment