WordPress at a glance
функция не описана

WP_Admin_Bar::add_group() public WP 3.3.0

Add a group to a menu node.

It's a method of the class: WP_Admin_Bar{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WP_Admin_Bar = new WP_Admin_Bar();
$WP_Admin_Bar->add_group( $args );
$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'.

Changelog

Since 3.3.0 Introduced.

Код WP_Admin_Bar::add_group() WP 5.5.1

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

	$this->add_node( $args );
}