print_styles_array filter-hookWP 2.6.0

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

WP_Styles::all_deps()
print_styles_array
wp-includes/class.wp-styles.php 380
$this->to_do = apply_filters( 'print_styles_array', $this->to_do );

Where the hook is used in WordPress

Usage not found.