Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Redirect After Login #7172
     knuhkles
    Participant

    ok so the final code should be this…

    COPY CODE
    
    /* Filter the redirect url for login*/
    add_filter("login_redirect","kleo_redirect_to_profile",100,3);
     
    function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
    /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
        if(!is_super_admin($user->ID))
           return '/my_page_link';
        else
            return $redirect_to_calculated; /*if site admin*/
    }
    
Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?