Noor's Plugin

WordPress Plugins, Themes, Hosting, Tutorials & more!

  • Home
  • Plugins
    • Themes
  • Hosting
  • Contact
    • Privacy Policy
  • About

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.

Related

Written by Noor Alam · Categorized: wordpress

Leave a Reply Cancel reply

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

Search Noor’s Plugin

Recent Posts

  • How to Add a Quantity Field to a Stripe Payment Button
  • How to Add a Price Field to a PayPal Button
  • Hide Product Image for WooCommerce Plugin
  • How to Show a Download Button to Logged in Users Only
  • How to Add a Price Field to a Stripe Payment Button
  • How to Disable/Hide Featured Images in WordPress Astra Theme
  • What is the White Screen of Death in WordPress?
  • How to Fix YouTube Error The uploader has not made this video available in your country
  • How to Configure SendGrid SMTP in WordPress
  • Checkout for PayPal WordPress Plugin

Copyright © 2022 · Noor's Plugin

This website uses cookies to improve your experience. By continuing, you agree to their use.Got it! Learn More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT