How to Disable Reviews in WooCommerce

Last updated on by admin

WooCommerce shows a Reviews tab by default on all of your product pages. This allows a customer to give feedback on your product. But what if you need to disable reviews storewide or on a particular product page? In this article, I will show you how you can easily disable reviews in WooCommerce without having to touch a single line of code.

How to Disable Reviews in WooCommerce


This is how the Reviews tab appears on a WooCommerce product page,

screenshot showing the reviews tab on a WooCommerce product page

If you wish to disable Reviews storewide or on a particular product page, there are 2 easy ways to do it.

#1 Disable Reviews on a Single Product Page

Go to All Products just below WooCommere on your WordPress admin dashboard. Click Edit on the product where you want to apply this setting. Scroll down to the Product data section and click Advanced. Now uncheck the Enable reviews option.

screenshot showing how to disable reviews on a WooCommerce product page

Click on the Update button to apply this setting to the product.

#2 Disable Reviews on All Products

Go to WooCommerce > Settings > Products from your WordPress admin dashboard and uncheck the Enable reviews option.

screenshot showing how to disable reviews on all all products in WooCommerce

Click Save changes to apply this setting.

How to Disable Reviews in WooCommerce Programmatically

I have shown you the easiest way to disable reviews in WooCommerce. But If you are into coding you can do this programmatically as well.

#1 Disable Reviews in WooCommerce with PHP Code

Go to Appearance > Editor from your WordPress admin dashboard and edit your theme’s functions.php file.

add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
    unset( $tabs['reviews'] ); // Remove the reviews tab
    return $tabs;
}

This function listens to the filter triggered by WooCommerce and prevents the Reviews tab from displaying.

#2 Disable Reviews in WooCommerce with CSS

Go to Appearance > Customize from your WordPress admin dashboard. This will open the Customizer interface of your theme. Click Additional CSS and add these piece of CSS code.

.woocommerce-tabs ul.tabs li.reviews_tab {
display: none !important;
}

If your theme doesn’t support Customizer you can just install a custom CSS plugin like Simple Custom CSS instead. Please note that CSS code will only hide the Reviews tab visually. The tab and any reviews with it will still remain on that page (you can check it by viewing the page source).

And that’s all! I hope this tutorial helped you disable reviews in WooCommerce. If you have any issues with any of the options shown above, please let me know in the comments.


You can now get 50% OFF WordPress Hosting here (only available for a limited time)

Related

How to Disable Reviews in WooCommerce
Author Rating: 5

Leave a Reply

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