为HTML头打印排队太晚的样式。

原型

print_late_styles()

返回值

(array|void)  

源文件

路径:wp-includes/script-loader.php

<?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;
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/print_late_styles/