Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to rearrange the Profile Tab


  • shelby85
    Participant

    @shelby85

    Hello how can we rearrange the profile tab in the users dashboard and user profile please..

Viewing 1 replies (of 1 total)

  • leighjeffery
    Participant

    @leighjeffery

    Paste this into your Functions.php file and then edit to your liking

    //Change order of Buddypress tabs
    
    function my_change_profile_tab_order() {
    	global $bp;
    
    	$bp->bp_nav['activity']['position'] = 10;
    	$bp->bp_nav['profile']['position'] = 20;
    	$bp->bp_nav['courses']['position'] = 30;
    	$bp->bp_nav['forums']['position'] = 40;
    	$bp->bp_nav['groups']['position'] = 50;
    	$bp->bp_nav['friends']['position'] = 60;
    	$bp->bp_nav['notifications']['position'] = 70;
    	$bp->bp_nav['messages']['position'] = 80;
    }
    add_action( 'bp_setup_nav', 'my_change_profile_tab_order', 999 );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar