Last active
August 29, 2015 14:04
-
-
Save bappi-d-great/591be83f017a963659e1 to your computer and use it in GitHub Desktop.
Reorder or rearrange buddypress menu items
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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