WP_Admin_Bar::add_menu()
Add a node (menu item) to the Admin Bar menu.
Method of the class: WP_Admin_Bar{}
Uses: WP_Admin_Bar::add_node()
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() WP Admin Bar::add menu code WP 6.6.2
public function add_menu( $node ) { $this->add_node( $node ); }