WP_Admin_Bar::add_group( array $args )

Add a group to a menu node.


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'.


Source

File: wp-includes/class-wp-admin-bar.php

	final public function add_group( $args ) {
		$args['group'] = true;

		$this->add_node( $args );
	}


Changelog

Changelog
Version Description
WP-3.3.0 Introduced.