I use WordPress with Woocommerce plugin, and now all product reviews go to "approved" section in Products -> Reviews.
I need to make it goes in waitlist by default instead.
Can’t find solution, maybe i’m blind)
So how can i do it?
I use WordPress with Woocommerce plugin, and now all product reviews go to "approved" section in Products -> Reviews.
I need to make it goes in waitlist by default instead.
Can’t find solution, maybe i’m blind)
So how can i do it?
2
Answers
We have custom AJAX to add reviews. There is an option in the
wp_insert_comment()
data argument called comment_approved. By default it's1
, so I just need to make it0
to change a comment status.There is the code:
single-product.js:
https://ibb.co/4PrkzBg/
woocommerce/ajax-functions.js:
https://ibb.co/jhdrqfb/
https://ibb.co/VYQPQfT/
You can find what you are looking for on this page:
Settings > Discussion : Comment must be manually approved
Woocommerce uses wordpress comments by default and these settings also apply to product reviews.