wp_admin_bar_add_secondary_groups

Advertisement

Summery Summery

Add secondary menus.

Syntax Syntax

wp_admin_bar_add_secondary_groups( WP_Admin_Bar $wp_admin_bar )

Parameters Parameters

$wp_admin_bar

(WP_Admin_Bar) (Required)

Source Source

File: wp-includes/admin-bar.php

function wp_admin_bar_add_secondary_groups( $wp_admin_bar ) {
	$wp_admin_bar->add_group(
		array(
			'id'   => 'top-secondary',
			'meta' => array(
				'class' => 'ab-top-secondary',
			),
		)
	);

	$wp_admin_bar->add_group(
		array(
			'parent' => 'wp-logo',
			'id'     => 'wp-logo-external',
			'meta'   => array(
				'class' => 'ab-sub-secondary',
			),
		)
	);
}

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.