Fires before the admin bar is rendered.
Source
do_action( 'wp_before_admin_bar_render' );
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |
CARVIEW |
Fires before the admin bar is rendered.
The wp_before_admin_bar_render action allows developers to modify the $wp_admin_bar object before it is used to render the Toolbar to the screen.
Please note that you must declare the $wp_admin_bar global object, as this hook is primarily intended to give you direct access to this object before it is rendered to the screen.
do_action( 'wp_before_admin_bar_render' );
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. |
Version | Description |
---|---|
3.1.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
(From Codex)
Add a Submenu Item
A use case for this action hook.
Remove a Menu Item
Example to Add a Top-Level Menu Item