Redirect WP Users After Login Based on LifterLMS Membership
Do you have courses and sell memberships on your site and use the LifterLMS plugin? We often offer subscriptions on our websites and want to redirect our students to a custom URL after they log in and log out of our WordPress site based on their enrolled membership.
In this article, we will show you how to redirect WordPress users after they login based on the membership they are in.
Enabling LifterLMS Integration
Go to LoginWP>>Redirections>>Integrations and scroll down to LifterLMS and enable it.
Creating a Redirection Rule
Go to LoginWP>>Redirections>>and click on “Add New”.
Under Rule Condition, select the membership in the “Enrolled Membership” section
Enter the login and logout URL to redirect students/users who are enrolled to the selected membership.
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