WP_Admin_Bar::add_group

Advertisement

Summery Summery

Add a group to a menu node.

Syntax Syntax

WP_Admin_Bar::add_group( array $args )

Parameters Parameters

$args

(array) (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 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

Changelog
Version Description
3.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.