Determines script dependencies.
Description
See also
Parameters
$handles
string|string[]required- Item handle (string) or item handles (array of strings).
$recursion
booloptional- Internal flag that function is calling itself.
Default:
false
$group
int|falseoptional- Group level: level (int), no groups (false).
Default:
false
Source
public function all_deps( $handles, $recursion = false, $group = false ) {
$r = parent::all_deps( $handles, $recursion, $group );
if ( ! $recursion ) {
/**
* Filters the list of script dependencies left to print.
*
* @since 2.3.0
*
* @param string[] $to_do An array of script dependency handles.
*/
$this->to_do = apply_filters( 'print_scripts_array', $this->to_do );
}
return $r;
}
Hooks
- apply_filters( ‘print_scripts_array’,
string[] $to_do ) Filters the list of script dependencies left to print.
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.