Skip to content

Instantly share code, notes, and snippets.

@bappi-d-great
Last active Aug 29, 2015
Embed
What would you like to do?
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