print_scripts_array filter-hook . WP 2.3.0
Filters the list of script dependencies left to print.
Usage
add_filter( 'print_scripts_array', 'filter_function_name_6522' ); function filter_function_name_6522( $to_do ){ // filter... return $to_do; }
- $to_do(string[])
- An array of script dependency handles.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
print_scripts_array
wp-includes/class.wp-scripts.php 628
$this->to_do = apply_filters( 'print_scripts_array', $this->to_do );
Where in WP core the hook is used WordPress
wp-includes/default-filters.php 524
add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' );