bp_core_add_nav_item()

Deprecated Deprecated

This function is deprecated in BuddyPress 1.1. Refer to bp_core_new_nav_item() going forward. Use of this function in BuddyPress versions greater than 1.1 is not recommended, but it will still work by internally calling bp_core_new_nav_item() to compensate.

Top ↑

Description Description

Adds a navigation item to the main navigation array used in BuddyPress themes.

Top ↑

Parameters Parameters

$name
String | Required | The display name for the navigation item.

$slug
String | Required | The URL slug for the navigation item.

$css_id
String | Optional | Default: $slug value | The ID to give the navigation item in HTML for CSS styling.

$add_to_usernav
Boolean | Optional | Default: TRUE | Should this navigation item be added to all user’s profiles, not just the user who is logged in?

Top ↑

Notes Notes

This function is deprecated in BuddyPress 1.1.

Last Updated by John James Jacoby on September 9, 2009 – 4:19pm EST