wp_before_admin_bar_render WordPress Action Hook

The wp_before_admin_bar_render hook is called before the admin bar is rendered. This hook can be used to add new items to the admin bar or remove existing items.

do_action( 'wp_before_admin_bar_render' ) #

Fires before the admin bar is rendered.


More Information

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.


Top ↑

Source

File: wp-includes/admin-bar.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.