_wp_admin_bar_init

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Instantiate the admin bar object and set it up as a global for access elsewhere.

Syntax

_wp_admin_bar_init()

DescriptionDescription

UNHOOKING THIS FUNCTION WILL NOT PROPERLY REMOVE THE ADMIN BAR. For that, use show_admin_bar(false) or the ‘show_admin_bar’ filter.

ReturnReturn

(bool) Whether the admin bar was successfully initialized.

SourceSource

File: wp-includes/admin-bar.php


			

ChangelogChangelog

Changelog
Version Description
3.1.0 Introduced.
Scroll to Top