bp_setup_admin_bar()

Fire the ‘bp_setup_admin_bar’ action, where plugins should add items to the WP admin bar.

Description

Source

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

function bp_setup_admin_bar() {
	if ( bp_use_wp_admin_bar() ) {

		/**
		 * Fires inside the 'bp_setup_admin_bar' function, where plugins should add items to the WP admin bar.
		 *
		 * This hook will only fire if bp_use_wp_admin_bar() returns true.
		 *
		 * @since BuddyPress 1.5.0
		 */
		do_action( 'bp_setup_admin_bar', array() );
	}
}

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.