Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,003
- How-to & Troubleshooting
- 129,526
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,495
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,169
-
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 ) );
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS