Skip links

WooCommerce: Remove Product Reviews

if you search about a way to remove product reviews from your WooCommerce store, you must now there were probably a plugin for this, this WordPress code snippet that you can use to remove product reviews in WooCommerce.

This code snippet will let you filter by product data tabs built-in hook woocommerce_product_tabs

Steps to remove product reviews on WooCommerce:

  1. Open WordPress admin panel then go to Appearance > Theme Editor
  2. Open theme functions.php file, if you work localhost open the same file using any code editor IDE
  3. Add the following code at the bottom of the file.
  4. Save the changes.

remove_action(‘woocommerce_product_tabs’, ‘woocommerce_product_reviews_tab’, 30);
remove_action(‘woocommerce_product_tab_panels’, ‘woocommerce_product_reviews_panel’, 30);

Did you find the WordPress snippets in this article helpful? Share it with your friends and if you have any questions and want to ask us about it, please don’t hesitate to add comments.

Leave a comment