Redirect LearnDash Users After Login Based on User Group
Do you offer courses on your site and use the LearnDash plugin? We often sell courses 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 the LearnDash user group they belong to.
In this article, we will show you how to redirect users after they login based on their user group in LearnDash.
Enabling LearnDash Integration
Go to LoginWP>>Redirections>>Integrations and scroll down to LearnDash and enable it.
Creating a Redirection Rule
Go to LoginWP>>Redirections>>and click on “Add New”.
Under Rule Condition, select the group under the “User Group” section
Enter the login and logout URL to redirect students/users who are in the selected group.
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