print_styles_array
Filters the array of enqueued styles before processing for output.
Usage
add_filter( 'print_styles_array', 'wp_kama_print_styles_array_filter' );
/**
* Function for `print_styles_array` filter-hook.
*
* @param string[] $to_do The list of enqueued style handles about to be processed.
*
* @return string[]
*/
function wp_kama_print_styles_array_filter( $to_do ){
// filter...
return $to_do;
}
- $to_do(string[])
- The list of enqueued style handles about to be processed.
Changelog
| Since 2.6.0 | Introduced. |
Where the hook is called
print_styles_array
wp-includes/class-wp-styles.php 380
$this->to_do = apply_filters( 'print_styles_array', $this->to_do );