• Resolved andrewrobo

    (@andrewrobo)


    when a user logins, i want them to land on teh homepage of my website, not the dashboard, is this possible?

    i have tried selecting the homepage in the “dashboard” settings of LMS General but that does not work out

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter andrewrobo

    (@andrewrobo)

    or, i want them to see my one and only course

    Hello @andrewrobo,

    Thank you for reaching out.

    To redirect users, you will need to use tutor_after_login_redirect_url hook. This will allow you to set homepage or any custom page as redirect URL after login.

    Thread Starter andrewrobo

    (@andrewrobo)

    ok but how do I use it?

    Hello @andrewrobo,

    You can use tutor_after_login_redirect_url hook by adding a small function in your theme’s functions.php file that returns your desired URL.

    Thread Starter andrewrobo

    (@andrewrobo)

    I think you can see that I have no understanding of this and I know how to do this. Is there any documentation on how to do this?

    Plugin Support Rashed Hossain

    (@wprashed)

    Hello @andrewrobo

    Hi, good question. By default, Tutor LMS sends logged-in users to the dashboard, so the “Dashboard” option in settings won’t work as a homepage replacement. If you want users to land on your homepage instead, you’ll need to add a custom redirection function for login.

    Just a note: don’t set the dashboard page itself as the homepage — if you do, the dashboard subpages won’t work properly.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘login’ is closed to new replies.