On this page
do_action_ref_array( 'admin_bar_menu', WP_Admin_Bar $wp_admin_bar )
Loads all necessary admin bar items.
Description
This is the hook used to add, remove, or manipulate admin bar items.
Parameters
$wp_admin_barWP_Admin_Bar-
The WP_Admin_Bar instance, passed by reference.
Source
File: wp-includes/admin-bar.php. View all references
do_action_ref_array( 'admin_bar_menu', array( &$wp_admin_bar ) );
Related
Used By
| Used By | Description |
|---|---|
| wp_admin_bar_render() wp-includes/admin-bar.php | Renders the admin bar to the page based on the $wp_admin_bar->menu member var. |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/admin_bar_menu