Check if logged-in user has already reviewed product (woocommerce for WordPress)

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)

Leave a Reply

Your email address will not be published. Required fields are marked *