Login redirect page

This topic contains 3 replies, has 3 voices, and was last updated by  Holger Sinningen 5 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2616

    Holger Sinningen
    Free User
    Post count: 15

    Hi,
    how can I set back the Login Redirect page to WordPress Default?
    Once I have choosen a site from Dropdown menu I can’t switch back to WordPress Default.
    Thanks.

    #2619

    Paolo
    Site Admin
    Post count: 31206

    WordPress by default redirects to the dashboard. Being UsersWP a plugin that allows to manage users from the front end, it doesn’t provide a similar option.

    I asked to the developers to let us know if they can provide a code snippet to workaround this.

    They’ll let you know asap.

    Thanks

    #2633

    Patrik
    Moderator
    Post count: 1971

    Hi Holger,

    In UsersWP, We have used custom form and handling it our own way. We are redirecting after login based on settings selected on the admin side. So if you want to override it and use your own URL to redirect after login we have a hook to in UsersWP called ‘uwp_login_redirect’.

    Following is the code for your reference which you need to put in the functions.php file of your currently active theme:

    
    
    add_filter('uwp_login_redirect', 'uwp_login_redirect_cb', 10, 1);
    function uwp_login_redirect_cb($redirect_to){
        $redirect_to = admin_url(); //URL to redirect
        return $redirect_to;
    }

    Let me know if you have any queries.

    Regards,
    Patrik

    #2636

    Holger Sinningen
    Free User
    Post count: 15

    Works just fine.
    Thanks a lot!

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket