wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_admin_bar_add_secondary_groups › WordPress Function

Since3.3.0
Deprecatedn/a
wp_admin_bar_add_secondary_groups ( $wp_admin_bar )
Parameters:
  • (WP_Admin_Bar) $wp_admin_bar The WP_Admin_Bar instance.
    Required: Yes
Defined at:
Codex:

Adds secondary menus.



Source

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',
			),
		)
	);
}