Login redirect to certain bp profile page

this one works better imho, not my code btw 🙂

put it in /plugins/bp-custom.php

    //=Redirect to User's Profile Page after Login
    function rt_login_redirect($redirect_to, $set_for, $user){
    $redirect_to = bp_core_get_user_domain($user->id);
    return $redirect_to;
    }
    add_filter('login_redirect', 'rt_login_redirect', 20, 3);

Leave a Comment