L
L
luom2020-02-10 04:42:08
WordPress
luom, 2020-02-10 04:42:08

How to make a redirect from a product to a closed page if the product has already been purchased (wordpress)?

I have an educational site built on Wordpress with Woocommerce and Woocommerce Memberships plugins. Access to the course opens after the purchase of the corresponding product in the catalog (after the purchase, the person is entered into a certain user group).
Can you please tell me how to set up a redirect from a product in the catalog to a closed course page if the user has already purchased access to it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pychev Anatoly, 2020-02-10
@pton

Thanks for the trust, but I'm not familiar with the Woocommerce Memberships plugin yet.
And, so, you can catch the request, on the "wp" hook, for example, check the user for belonging to a group and wp_redirect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question