This topic has 1 reply, 2 voices, and was last updated 11 years by adam.

  • Author
  • #7772
     dealscombo
    Participant

    Hi,
    Excellent theme. I made some changes in functions.php in child theme. However resorted to normal. but Users are not getting redirected after login. The login screen is not getting disappear. When I login as admin I am able to view the dashboard. Please help.

    #7781
     adam
    Participant

    show us your code.

    it should look like 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 bp_core_get_user_domain($user->ID );
        else
            return $redirect_to_calculated; /*if site admin*/
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?