Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Showcase
  • Hosting
    • Themes
    • Plugins
    • Patterns
    • Blocks
    • Openverse ↗︎
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
    • Make WordPress
    • Photo Directory
    • Five for the Future
    • WordCamp ↗︎
    • Meetups ↗︎
    • Job Board ↗︎
    • About WordPress
    • Enterprise
    • Gutenberg ↗︎
    • Swag Store ↗︎
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/admin-bar.php

wp_enqueue_admin_bar_bump_styles()

Function: Enqueues inline bump styles to make room for the admin bar.

Source: wp-includes/admin-bar.php:1258

Used by 0 functions | Uses 5 functions

wp_enqueue_admin_bar_header_styles()

Function: Enqueues inline style to hide the admin bar when printing.

Source: wp-includes/admin-bar.php:1242

Used by 0 functions | Uses 4 functions

wp_admin_bar_show_site_icons

Filter Hook: Filters whether to show the site icons in toolbar.

Source: wp-includes/admin-bar.php:666

Used by 1 function | Uses 0 functions

wp_admin_bar_edit_site_menu()

Function: Adds the “Edit site” link to the Toolbar.

Source: wp-includes/admin-bar.php:452

Used by 0 functions | Uses 7 functions

wp_admin_bar_recovery_mode_menu()

Function: Adds a link to exit recovery mode when Recovery Mode is active.

Source: wp-includes/admin-bar.php:1190

Used by 0 functions | Uses 6 functions

wp_admin_bar_customize_menu()

Function: Adds the “Customize” link to the Toolbar.

Source: wp-includes/admin-bar.php:488

Used by 0 functions | Uses 13 functions

is_admin_bar_showing()

Function: Determines whether the admin bar should be showing.

Source: wp-includes/admin-bar.php:1316

Used by 4 functions | Uses 6 functions

wp_admin_bar_my_sites_menu()

Function: Adds the “My Sites/[Site Name]” menu and all submenus.

Source: wp-includes/admin-bar.php:538

Used by 0 functions | Uses 19 functions

show_admin_bar

Filter Hook: Filters whether to show the admin bar.

Source: wp-includes/admin-bar.php:1351

Used by 1 function | Uses 0 functions

wp_admin_bar_shortlink_menu()

Function: Provides a shortlink.

Source: wp-includes/admin-bar.php:761

Used by 0 functions | Uses 4 functions

_get_admin_bar_pref()

Function: Retrieves the admin bar display preference of a user.

Source: wp-includes/admin-bar.php:1367

Used by 1 function | Uses 1 function

wp_admin_bar_edit_menu()

Function: Provides an edit link for posts and terms.

Source: wp-includes/admin-bar.php:795

Used by 0 functions | Uses 21 functions

wp_admin_bar_new_content_menu()

Function: Adds “Add New” menu.

Source: wp-includes/admin-bar.php:932

Used by 0 functions | Uses 6 functions

wp_admin_bar_comments_menu()

Function: Adds edit comments link with awaiting moderation count bubble.

Source: wp-includes/admin-bar.php:1008

Used by 0 functions | Uses 6 functions

wp_admin_bar_appearance_menu()

Function: Adds appearance submenu items to the “Site Name” menu.

Source: wp-includes/admin-bar.php:1041

Used by 1 function | Uses 7 functions

wp_admin_bar_wp_menu()

Function: Adds the WordPress logo menu.

Source: wp-includes/admin-bar.php:123

Used by 0 functions | Uses 7 functions

wp_admin_bar_updates_menu()

Function: Provides an update link if theme/plugin/core updates are available.

Source: wp-includes/admin-bar.php:1122

Used by 0 functions | Uses 5 functions

wp_admin_bar_sidebar_toggle()

Function: Adds the sidebar toggle button.

Source: wp-includes/admin-bar.php:235

Used by 0 functions | Uses 3 functions

wp_admin_bar_search_menu()

Function: Adds search form.

Source: wp-includes/admin-bar.php:1156

Used by 0 functions | Uses 5 functions

wp_admin_bar_my_account_item()

Function: Adds the “My Account” item.

Source: wp-includes/admin-bar.php:257

Used by 0 functions | Uses 9 functions

wp_admin_bar_add_secondary_groups()

Function: Adds secondary menus.

Source: wp-includes/admin-bar.php:1216

Used by 0 functions | Uses 1 function

wp_admin_bar_my_account_menu()

Function: Adds the “My Account” submenu items.

Source: wp-includes/admin-bar.php:298

Used by 0 functions | Uses 11 functions

show_admin_bar()

Function: Sets the display status of the admin bar.

Source: wp-includes/admin-bar.php:1297

Used by 2 functions | Uses 0 functions

wp_admin_bar_site_menu()

Function: Adds the “Site Name” menu.

Source: wp-includes/admin-bar.php:368

Used by 0 functions | Uses 20 functions

_wp_admin_bar_init()

Function: Instantiates the admin bar object and set it up as a global for access elsewhere.

Source: wp-includes/admin-bar.php:23

Used by 0 functions | Uses 4 functions

wp_admin_bar_class

Filter Hook: Filters the admin bar class to instantiate.

Source: wp-includes/admin-bar.php:42

Used by 1 function | Uses 0 functions

wp_admin_bar_render()

Function: Renders the admin bar to the page based on the $wp_admin_bar->menu member var.

Source: wp-includes/admin-bar.php:74

Used by 0 functions | Uses 4 functions

admin_bar_menu

Action Hook: Loads all necessary admin bar items.

Source: wp-includes/admin-bar.php:95

Used by 1 function | Uses 0 functions

wp_before_admin_bar_render

Action Hook: Fires before the admin bar is rendered.

Source: wp-includes/admin-bar.php:102

Used by 1 function | Uses 0 functions

wp_after_admin_bar_render

Action Hook: Fires after the admin bar is rendered.

Source: wp-includes/admin-bar.php:111

Used by 1 function | Uses 0 functions
  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Donate ↗
  • Swag Store ↗
  • WordCamp ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our X (formerly Twitter) account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
Code is Poetry