• Resolved kontext

    (@kontext)


    Love the plugin, it worked well for a bit but now it redirects customers to /wp-admin when trying to log in – when they should be redirected to the homepage, even though I have the following code enabled:

    // Redirect logged-in users to the homepage after login
    add_filter(‘login_redirect’, ‘custom_login_redirect’, 10, 3);
    function custom_login_redirect($redirect_to, $request, $user) {
    // Redirect all users to the homepage after login
    return home_url(‘/’);
    }

    Any ideas what could be the issue?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YEGHRO

    (@yeghro)

    I’ve given the plugin an update so now you can choose where you want users redirected. Give it an update and see if it addresses your issue. Let me know how it goes.

    P.S. Your WordPress theme looks great. You did a fantastic job on your site, Looks very nice, well done.

    • This reply was modified 6 months, 1 week ago by YEGHRO.
    Thread Starter kontext

    (@kontext)

    Thanks a lot x2! 🙂 The redirect function seems to be working great.

    Plugin Author YEGHRO

    (@yeghro)

    Thanks a lot x2! 🙂 The redirect function seems to be working great.

    That is great to hear, kontext. Thank you for the feedback.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirects to /wp-admin’ is closed to new replies.