WordPress at a glance
function is not described

WP_Admin_Bar::add_menu() public WP 3.3.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.5.2

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