bp_core_add_nav_item()

bp_core_add_nav_item()

Codex Home → Developer Resources → Deprecated → bp_core_add_nav_item()
bp_core_add_nav_item()

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.
Description
Adds a navigation item to the main navigation array used in BuddyPress themes.
Parameters
$nameString | Required | The display name for the navigation item.
$slugString | Required | The URL slug for the navigation item.
$css_idString | 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?
Notes
This function is deprecated in BuddyPress 1.1.
Last Updated by John James Jacoby on September 9, 2009 – 4:19pm EST

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注