Uses
Uses | Description |
---|---|
wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::add_node() | Adds a node to the menu. |
Add a group to a menu node.
(array) (Required) Array of arguments for adding a group.
(string) ID of the item.
(string) Optional. ID of the parent node. Default 'root'.
(array) Meta data for the group including the following keys: 'class', 'onclick', 'target', and 'title'.
$wp_admin_bar global
object, which may not exist except during the ‘admin_bar_menu
‘ or ‘wp_before_admin_bar_render
‘ hooks.File: wp-includes/class-wp-admin-bar.php
final public function add_group( $args ) { $args['group'] = true; $this->add_node( $args ); }
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_admin_bar/add_group