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:
- Open WordPress admin panel then go to Appearance > Theme Editor
- Open theme functions.php file, if you work localhost open the same file using any code editor IDE
- Add the following code at the bottom of the file.
- 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.