Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: customizing buddypress profile page default tab and item-nav order

correct behavior – the slug is used as the nav id

$bp->profile->slug = BP_XPROFILE_SLUG;

/* Add ‘Profile’ to the main navigation */
bp_core_new_nav_item( array( ‘name’ => __( ‘Profile’, ‘buddypress’ ), ‘slug’ => $bp->profile->slug, ‘position’ => 20, ‘screen_function’ => ‘xprofile_screen_display_profile’, ‘default_subnav_slug’ => ‘public’, ‘item_css_id’ => $bp->profile->id ) );

Skip to toolbar