A WordPress-centric search engine for devs and theme authors



wp_admin_bar_add_secondary_groups ›

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

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