Woocommerce

WooCommerce: How to Disable/Enable Product Review Tab

Written by 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

Alauddin

It's no secret that the web continues to evolve at a pretty rapid rate. Even with all of the tools and technologies currently in place, a high quality search engine friendly content must prove itself ready for the Internet's continuing evolution. That's where I come in. As a professional Digital Marketing Strategist and Search Engine Optimization Expert , I not only develop marketing strategy for your business to take advantage of all that the web currently offers, but also what is still to come. My professional skills are grounded in the search engine technologies that have permeated business development and that continue to drive its innovation.

Leave a Comment