How to Disable Reviews in WooCommerce

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

WooCommerce product reviews tab shows all the reviews submitted by customers. 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 remove this star rating system or disable Reviews in WooCommerce, 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.

Disclosure: This page may contain affiliate links. If you follow one of those affiliate links and purchase something it will provide me with a little bit of a commission. This costs you nothing extra but helps maintain my site, free plugins, and themes. So I thank you for your support.

Leave a Comment