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?
CodePudding user response:
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.
CodePudding user response:
I found the solution! Thanks for help!
We have custom ajax adding reviews. And there's an option in the wp_insert_comment()
data argument, called comment_approved, by default it's 1
, so i just need to make it 0
to change a comment status.
There's the code:
single-product.js:
https://ibb.co/4PrkzBg/
woocommerce/ajax-functions.js
https://ibb.co/jhdrqfb/
https://ibb.co/VYQPQfT/