Summery Summery
Add a group to a menu node.
Syntax Syntax
Parameters Parameters
- $args
-
(Required) Array of arguments for adding a group.
- 'id'
(string) ID of the item. - 'parent'
(string) Optional. ID of the parent node. Default 'root'. - 'meta'
(array) Meta data for the group including the following keys: 'class', 'onclick', 'target', and 'title'.
- 'id'
Source Source
File: wp-includes/class-wp-admin-bar.php
final public function add_group( $args ) { $args['group'] = true; $this->add_node( $args ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |