I was trying to make a small WP plugin for reviews, but I need to check whether the current logged-in user has already reviewed a product once or not.

I want to allow only one review per user per product, hence the request.

The class WC_Product has a function call for review counts, but I can’t seem to find the user id’s of the users who have reviewed the product.

Thanks

Read more here: Check if logged-in user has already reviewed product (woocommerce for WordPress)


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: