Warning: This function has been deprecated. Use wp_enqueue_admin_bar_header_styles() instead.

wp_admin_bar_header()

Prints style and scripts for the admin bar.


Source

File: wp-includes/deprecated.php. View all references

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
}


Top ↑

Changelog

Changelog
Version Description
6.4.0 Use wp_enqueue_admin_bar_header_styles() instead.
3.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.