X

Modify Profile Tab Order in BuddyPress

This snippet will let you modify profile tab order in BuddyPress. Change the numbers to adjust the position of your tabs. Drop this snippet into the bp-custom.php or functions.php of your WordPress / BuddyPress theme and you're all set.


Code Snippet:


function wps_modify_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', 'wps_modify_tab_order', 999 );

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!