admin_bar_menu WordPress Action Hook
The admin bar menu is a hook that allows you to add new items to the WordPress admin bar. This hook is fired before the admin bar is rendered, so you can use it to add new items or remove existing ones.
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_bar
(WP_Admin_Bar)The WP_Admin_Bar instance, passed by reference.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |