Used By
Used By | Description |
---|---|
wp-admin/includes/template.php: iframe_header() | Generic Iframe header for use with Thickbox |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::setup_theme() | Start preview and customize theme. |
Sets the display status of the admin bar.
This can be called immediately upon plugin load. It does not need to be called from a function hooked to the ‘init’ action.
(bool) (Required) Whether to allow the admin bar to show.
This function should be called immediately upon plugin load or placed in the theme’s functions.php file.
This function will also affect the display of the Toolbar in the dashboard for WordPress versions prior to Version 3.3.
File: wp-includes/admin-bar.php
function show_admin_bar( $show ) { global $show_admin_bar; $show_admin_bar = (bool) $show; }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/show_admin_bar