Home Forums Plugin Support WP User Frontend Pro How can I redirect to a homepage after Login?

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  R & F Tecnologic 3 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #54191

    R & F Tecnologic
    Member
    Post count: 47

    Hello, I just wanna know how redirect to my First (Home page – Index.php) after Login?

    by default it redirect me to the same login page: You are currently logged in!

    I want to redirect to other page after redirect.

    Thank in advance

    #54217

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Please insert those codes in your child 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.

    #54289

    R & F Tecnologic
    Member
    Post count: 47

    Ok, thank.

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

The topic ‘How can I redirect to a homepage after Login?’ is closed to new replies.