Skip to content

Instantly share code, notes, and snippets.

@bappi-d-great
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bappi-d-great/591be83f017a963659e1 to your computer and use it in GitHub Desktop.
Save bappi-d-great/591be83f017a963659e1 to your computer and use it in GitHub Desktop.
Reorder or rearrange buddypress menu items
<?php
function my_change_profile_tab_order() {
global $bp;
$bp->bp_nav['settings']['position'] = 10;
$bp->bp_nav['activity']['position'] = 20;
$bp->bp_nav['friends']['position'] = 30;
$bp->bp_nav['groups']['position'] = 40;
$bp->bp_nav['blogs']['position'] = 50;
$bp->bp_nav['messages']['position'] = 60;
$bp->bp_nav['profile']['position'] = 70;
}
add_action( ‘bp_setup_nav’, ‘my_change_profile_tab_order’, 999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment