Home Forums Plugin Support WP User Frontend Pro Redirect after login

This topic is: resolved

This topic contains 4 replies, has 3 voices, and was last updated by  Khandaker 3 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44231

    Alexandre
    Member
    Post count: 73

    Hi

    I would like to redirect users to the dashboard after login

    i saw this solution but this is for Dokan

    https://wedevs.com/support/topic/redirect-sellers-to-dashboard-when-logging-in/#post-42920

    anything similar for WPUF ?

    Tx

    Alex

    #44243

    Nayem
    Moderator
    Post count: 6480

    Yes, you can redirect your user after login. Please insert those code into your theme's function.php file-

    add_filter('wpuf_login_redirect', 'login_redirect');
    function login_redirect($redirect){
    
     $redirect =	home_url('/your own page') ; 
    return $redirect;
    }

    Thanks.

    #44247

    Alexandre
    Member
    Post count: 73

    Hi Nayem

    Tx a lot

    it works like a charm !

    #44254

    Nayem
    Moderator
    Post count: 6480

    Hello Alexandre,

    I am very glad to know that. I am marking this topic as resolved.

    #45237

    Khandaker
    Member
    Post count: 1

    Great it is working. Thanks Nayem vai

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

The topic ‘Redirect after login’ is closed to new replies.