print_late_styles
Filter HookDescription
Filters whether to print the styles queued too late for the HTML head.Hook Information
File Location |
wp-includes/script-loader.php
View on GitHub
|
Hook Type | Filter |
Line Number | 2363 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$print
|
Whether to print the 'late' styles. Default true. |
Usage Examples
Basic Usage
<?php
// Hook into print_late_styles
add_filter('print_late_styles', 'my_custom_filter', 10, 1);
function my_custom_filter($print) {
// Your custom filtering logic here
return $print;
}
Source Code Context
wp-includes/script-loader.php:2363
- How this hook is used in WordPress core
<?php
2358 *
2359 * @since 3.3.0
2360 *
2361 * @param bool $print Whether to print the 'late' styles. Default true.
2362 */
2363 if ( apply_filters( 'print_late_styles', true ) ) {
2364 _print_styles();
2365 }
2366
2367 $wp_styles->reset();
2368 return $wp_styles->done;
PHP Documentation
<?php
/**
* 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.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/script-loader.php
Related Hooks
Related hooks will be displayed here in future updates.