wp_admin_bar_header() WordPress Function
The wp_admin_bar_header() function displays the header for the WordPress admin bar.
wp_admin_bar_header() #
Prints style and scripts for the admin bar.
Source
File: wp-includes/admin-bar.php
function wp_admin_bar_header() {
$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
?>
<style<?php echo $type_attr; ?> media="print">#wpadminbar { display:none; }</style>
<?php
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |