0

HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page?

closed as off-topic by Krzysiek Dróżdż, fuxia Dec 19 '18 at 20:50

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • cant get anything to work for this task: – Donald Campan Dec 19 '18 at 18:23
  • function my_login_redirect( $user_id, $user_login, $user_password, $user_email, $usermeta ) { wp_redirect( bp_loggedin_user_domain() . '/profile/edit/group/1/' ); exit(); } add_action( 'login_redirect', 'my_login_redirect', 10, 5 ); – Donald Campan Dec 19 '18 at 18:23
0

You could try...

function admin_default_page() {
    global $user;
    return bp_core_get_user_domain( $user->ID ).'/groups/';
}
add_filter('login_redirect', 'admin_default_page');

Or a plugin... BuddyPress Login Redirect to Profile

  • this works like a charm ^^ THANK YOU!!! BIG TIME!!!!! – Donald Campan Dec 19 '18 at 18:37
0

function admin_default_page() { global $user; return bp_core_get_user_domain( $user->ID ).'/profile/edit/group/2/'; } add_filter('login_redirect', 'admin_default_page');

Not the answer you're looking for? Browse other questions tagged or ask your own question.