print_late_styles
Filters whether to print the styles queued too late for the HTML head.
Использование
add_filter( 'print_late_styles', 'wp_kama_print_late_styles_filter' );
/**
* Function for `print_late_styles` filter-hook.
*
* @param bool $print Whether to print the 'late' styles.
*
* @return bool
*/
function wp_kama_print_late_styles_filter( $print ){
// filter...
return $print;
}
- $print(true|false)
- Whether to print the 'late' styles.
По умолчанию: true
Список изменений
| С версии 3.3.0 | Введена. |
Где вызывается хук
print_late_styles
wp-includes/script-loader.php 2375
if ( apply_filters( 'print_late_styles', true ) ) {