Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Redirect users to buddypress profile edit page after sign up

  • @tightflks

    Participant

    Once a user registers I want to be able to redirect the user to their edit profile options page, what would be the right way to go about this?

Viewing 1 replies (of 1 total)
  • @henrywright

    Moderator

    Hi @tightflks

    Try adding this to your theme’s functions.php file:

    function my_signup_redirect( $user_id, $user_login, $user_password, $user_email, $usermeta ) {
        wp_redirect( home_url() . '/members/' . $user_login . '/profile/edit/group/1/' );
        exit();
    }
    add_action( 'bp_core_signup_user', 'my_signup_redirect', 10, 5 );
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Redirect users to buddypress profile edit page after sign up’ is closed to new replies.
Skip to toolbar