Summery Summery
Sets the display status of the admin bar.
Syntax Syntax
Description Description
This can be called immediately upon plugin load. It does not need to be called from a function hooked to the ‘init’ action.
Parameters Parameters
- $show
-
(Required) Whether to allow the admin bar to show.
Source Source
File: wp-includes/admin-bar.php
function show_admin_bar( $show ) { global $show_admin_bar; $show_admin_bar = (bool) $show; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |