WordPress at Your Fingertips

WP_Admin_Bar::add_menu() WP 1.0

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

{} It's a method of the class: WP_Admin_Bar{}

No Hooks.

Return

null. Nothing.

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.

Code of WP_Admin_Bar::add_menu() WP 5.8.1

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

Admin Bar (toolbar)

No comments
    Log In