Summery Summery
Add secondary menus.
Syntax Syntax
Parameters Parameters
- $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
Version | Description |
---|---|
3.3.0 | Introduced. |