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.


Top ↑

Parameters

$wp_admin_bar

(WP_Admin_Bar)The WP_Admin_Bar instance, passed by reference.


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.