Uses
Uses | Description |
---|---|
wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::add_group() | Add a group to a menu node. |
Add secondary menus.
(WP_Admin_Bar) (Required)
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', ), ) ); }
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_admin_bar_add_secondary_groups