Redirect Users After Login Based on WooCommerce Membership Plan
Do you have a membership site powered by the WooCommerce membership plugin and want to redirect your WordPress site users to a particular page or custom URL after they log in and log out based on their active membership plan?
LoginWP’s integration with Woocommerce allows you to do just that and more. When a WordPress user with an active membership plan logs in, you can redirect them to a custom post/page.
In this article, you will learn how to redirect users based on their WooCommerce Membership plan.
Enabling WooCommerce Membership Integration
Make sure you have activated the Woocommerce Memberships plugin
Go to LoginWP>>Redirections>>Integrations and scroll down to Woocommerce and enable it.
Creating a Redirection Rule
Go to LoginWP>>Redirections>>Add New
Under Rule Condition, select the membership plan under the “WooCommerce” section
Enter the login and logout URLs for users with an active membership of the selected plan.
Click on Save Rule and that’s it 😁
If you want to use any of the placeholders or merge tags in the login/logout field please visit Login Redirect Placeholders & Use Cases.
See also: How to Redirect Users After Login to Previous/Referrer Page