@wbrown
11 years, 9 months ago
I have updated the bottom portion of code the following:
function my_bp_groups_forum_first_tab() { global $bp;
$bp->bp_options_nav[$bp->groups->current_group->slug][‘admin’][‘position’] = 1; $bp->bp_options_nav[$bp->groups->current_group->slug][‘home’][‘position’] = 2; $bp->bp_options_nav[$bp->groups->current_group->slug][‘members’][‘position’] = 4; $bp->bp_options_nav[$bp->groups->current_group->slug][‘hierarchy’][‘position’] = 6; $bp->bp_options_nav[$bp->groups->current_group->slug][‘forum’][‘position’] = 8; $bp->bp_options_nav[$bp->groups->current_group->slug][‘send-invites’][‘position’] = 10; $bp->bp_options_nav[$bp->groups->current_group->slug][‘media’][‘position’] = 30; $bp->bp_options_nav[$bp->groups->current_group->slug][‘docs’][‘position’] = 90;
}
add_action(‘wp’, ‘my_bp_groups_forum_first_tab’);
It seems to have worked, except for the “hierarchy’ tab. This is for subgroups and for some reason refuses to be anything but the last item in line.