print_styles_array
Filter HookDescription
Filters the array of enqueued styles before processing for output.Hook Information
File Location |
wp-includes/class-wp-styles.php
View on GitHub
|
Hook Type | Filter |
Line Number | 380 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$to_do
|
The list of enqueued style handles about to be processed. |
Usage Examples
Basic Usage
<?php
// Hook into print_styles_array
add_filter('print_styles_array', 'my_custom_filter', 10, 1);
function my_custom_filter($to_do) {
// Your custom filtering logic here
return $to_do;
}
Source Code Context
wp-includes/class-wp-styles.php:380
- How this hook is used in WordPress core
<?php
375 *
376 * @since 2.6.0
377 *
378 * @param string[] $to_do The list of enqueued style handles about to be processed.
379 */
380 $this->to_do = apply_filters( 'print_styles_array', $this->to_do );
381 }
382 return $result;
383 }
384
385 /**
PHP Documentation
<?php
/**
* Filters the array of enqueued styles before processing for output.
*
* @since 2.6.0
*
* @param string[] $to_do The list of enqueued style handles about to be processed.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/class-wp-styles.php
Related Hooks
Related hooks will be displayed here in future updates.