Redirect LearnDash Users After Login Based on Enrolled Course
Do you have courses on your site and use the LearnDash plugin? We often offer 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 their enrolled courses.
In this article, we will show you how to redirect users after they log in based on their enrolled LearnDash course on your WordPress website.
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 course under the “Enrolled Course” section
Enter the login and logout URL to redirect students/users who are enrolled to the selected course.
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