Woocommerce function to check if user has a bought a product then redirect to a specific page using javascript
Currently having a listing site that uses Woocommerce and woo subscriptions. There are two customers - free and premium. In the user-dashboard, I would like to hide from the free users a specific area that is visits statistics. I would…