WordPress at a glance
function is not described

print_late_styles() WP 3.3.0

Prints the styles that were queued too late for the HTML head.

  • Global. WP_Styles. $wp_styles
  • Global. true/false. $concatenate_scripts
Hooks in function
Return

Array/null.

Usage

print_late_styles();

Code of print late styles: wp-includes/script-loader.php VER 5.1.1

<?php
function print_late_styles() {
	global $wp_styles, $concatenate_scripts;

	if ( ! ( $wp_styles instanceof WP_Styles ) ) {
		return;
	}

	script_concat_settings();
	$wp_styles->do_concat = $concatenate_scripts;
	$wp_styles->do_footer_items();

	/**
	 * Filters whether to print the styles queued too late for the HTML head.
	 *
	 * @since 3.3.0
	 *
	 * @param bool $print Whether to print the 'late' styles. Default true.
	 */
	if ( apply_filters( 'print_late_styles', true ) ) {
		_print_styles();
	}

	$wp_styles->reset();
	return $wp_styles->done;
}