Redirect after Login
-
Hi,
When logging in using the Tutor LMS login page, I want the user to be redirected to a custom URL rather than the dashboard.
I tried to use the “tutor_login_redirect_url” filter hook found in the documentation by adding the following snippet that I found here.
function my_function($redirect_to) { $redirect_to = "https://mywebsite.com/custom-page/"; return $redirect_to; } add_filter('tutor_login_redirect_url', 'my_function', 10, 1);
However, this snippet doesn’t seem to do anything.
I notice that the page that I found this snippet on is over two years old. Has this hook been replaced by a different hook in Tutor LMS 2.0?
Note: I can’t use the more general wp_redirect function with the wp_login hook as this causes issues with Paid Memberships Pro.
Thank you for your help! ??
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Redirect after Login’ is closed to new replies.