redirect after login
-
for redirecting my users after login i put on functions.php as suggested in other topic this code:
function custom_login_redirect_to($user_login, $user) { $current_user = wp_get_current_user(); $username= $current_user->user_login; bp_core_redirect( get_option('siteurl')."/members/".$username ); } add_action('wp_login', 'custom_login_redirect_to', 10, 2);
but this show me just
http://mysite.com/members
and not the fullhttp://mysite.com/members/CURRENTLOGGEDINUSER
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.