do_action( 'bp_core_new_nav_item', array $r, array $args, array $defaults )

Fires after adding an item to the main BuddyPress navigation array.

Description

Note that, when possible, the more specific action hooks bp_core_create_nav_link or bp_core_register_nav_screen_function should be used.

Parameters

$r

(array) Parsed arguments for the nav item.

$args

(array) Originally passed in arguments for the nav item.

$defaults

(array) Default arguments for a nav item.

Source

File: bp-core/bp-core-buddybar.php

Changelog

Changelog
Version Description
BuddyPress 1.5.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.