Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to redirect edit profile page to another profile group ?

  • @evo252

    Participant

    Hello !

    I would like to redirect the user to another profile group fields when he clicks on “edit profile”, in order to display the second profile group as default tab. Is there a way to do that ?

    I tried that:
    `<?php global $bp;
    if(bp_get_current_profile_group_id()==1)
    bp_core_redirect($bp->displayed_user->domain.”profile/edit/group/2″);
    ?>`

    But it displays me an error :
    Warning: Cannot modify header information – headers already sent by (output started at mydomain.com/wp-content/themes/buddyboss/header.php:3) in mydomain.com/wp-includes/pluggable.php on line 934

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @evo252

    Participant

    Sorry the code I wanted to show has been stripped:

    `global $bp;
    if(bp_get_current_profile_group_id()==1)
    bp_core_redirect($bp->displayed_user->domain.”profile/edit/group/2″);`

    @shanebp

    Moderator

    Don’t redirect them.
    Find where the Edit Profile link is and change it to:

    `
    <a href="profile/edit/group/2″>Edit Profile
    `

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to redirect edit profile page to another profile group ?’ is closed to new replies.
Skip to toolbar