print_scripts_array WordPress Filter Hook

The print_scripts_array hook is a great way to process data before it is outputted to the screen. This hook can be used to add or remove data from an array, or to modify data in an array. This hook is called before the data is printed to the screen, so you can make changes to the data before it is outputted.

apply_filters( 'print_scripts_array', string[] $to_do ) #

Filters the list of script dependencies left to print.


Parameters

$to_do

(string[])An array of script dependency handles.


Top ↑

Source

File: wp-includes/class.wp-scripts.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.