Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I turn off "comment is required" when leaving a rating on a product in woocommerce

Tags:

woocommerce

I am using woocommerce and I allow comments on each product. The Star rating is included. In the woocommerce settings > products > reviews the box for "ratings are required to leave a review" is NOT checked. But, when testing and submitting a rating I get the message that a comment is required. Is there a way to turn this off that I'm missing? If I turn off allow comments on each product than ratings are also turned off.

like image 403
Kim Avatar asked Jun 06 '17 20:06

Kim


People also ask

How do I disable comments in WooCommerce Products?

Disable Reviews in the Settings You can disable product reviews by turning them off in the settings. Go to WooCommerce > Settings > Products and uncheck Enable product reviews .

How do I remove a shop page rating in WooCommerce?

Remove the rating widget If you just want to remove the rating widget from your product pages, you can do so by going to WooCommerce > Settings > Products > Display, scrolling down to the Product Ratings section and selecting Do not show. This will remove the rating widget from all products on your site.


1 Answers

add_filter('allow_empty_comment', '__return_true');
like image 86
verybadbug Avatar answered Sep 27 '22 21:09

verybadbug