Thanks sharmstr
I have the following code
COPY CODE
add_action('bp_init','change_media_tab_position', 12);
function change_media_tab_position(){
global $bp;
if( isset ($bp->bp_nav['media'])){
$bp->bp_nav['media']['position'] = 30;
}
}
function my_change_profile_tab_order(){
global $bp;
$bp->bp_nav['activity']['position'] = 10;
$bp->bp_nav['profile']['position'] = 20;
$bp->bp_nav['my articles']['position'] = 40;
$bp->bp_nav['forums']['position'] = 50;
$bp->bp_nav['groups']['position'] = 60;
$bp->bp_nav['events']['position'] = 70;
$bp->bp_nav['friends']['position'] = 80;
$bp->bp_nav['send invites']['position'] = 90;
$bp->bp_nav['notifications']['position'] = 100;
$bp->bp_nav['messages']['position'] = 110;
$bp->bp_nav['settings']['position'] = 120;
}
add_action( 'bp_setup_nav', 'my_change_profile_tab_order', 999 );
But not all the tabs are lining up to the order plus it added some blank tabs see screenshot
Attachments:
You must be
logged in to view attached files.