Rename Labels for Buddypress Groups Tabs


function jm_move_group_activity_tab() {
  global $bp;
  if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) {
//    $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['position'] = '98';
    $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['name'] = 'Activity';
    $bp->bp_options_nav[$bp->groups->current_group->slug]['forum']['name'] = 'Discussion';
  }
}
add_action('bp_init', 'jm_move_group_activity_tab');
Advertisements

2 thoughts on “Rename Labels for Buddypress Groups Tabs

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s