wp_admin_bar_header()
Deprecated from version 6.4.0. It is no longer supported and can be removed in future releases. Use wp_enqueue_admin_bar_header_styles() instead.
Prints style and scripts for the admin bar.
No Hooks.
Return
null
. Nothing (null).
Usage
wp_admin_bar_header();
Changelog
Since 3.1.0 | Introduced. |
Deprecated since 6.4.0 | Use wp_enqueue_admin_bar_header_styles() instead. |
wp_admin_bar_header() wp admin bar header code WP 6.6.1
<?php function wp_admin_bar_header() { _deprecated_function( __FUNCTION__, '6.4.0', 'wp_enqueue_admin_bar_header_styles' ); $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"'; ?> <style<?php echo $type_attr; ?> media="print">#wpadminbar { display:none; }</style> <?php }