print_late_styles()
最后更新于:2021-11-27 20:43:19
print_late_styles()Prints the styles that were queued too late for the HTML head.
响应
(array|void)
源文件
文件: gc-includes/script-loader.php
function print_late_styles() {
global $gc_styles, $concatenate_scripts;
if ( ! ( $gc_styles instanceof GC_Styles ) ) {
return;
}
script_concat_settings();
$gc_styles->do_concat = $concatenate_scripts;
$gc_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();
}
$gc_styles->reset();
return $gc_styles->done;
}