WP_Admin_Bar::add_menu()publicWP 3.3.0

Add a node (menu item) to the Admin Bar menu.

Method of the class: WP_Admin_Bar{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Admin_Bar = new WP_Admin_Bar();
$WP_Admin_Bar->add_menu( $node );
$node(array) (required)
The attributes that define the node.

Changelog

Since 3.3.0 Introduced.

WP_Admin_Bar::add_menu() code WP 6.6.2

public function add_menu( $node ) {
	$this->add_node( $node );
}