Summery Summery

Determines script dependencies.

Syntax Syntax

WP_Scripts::all_deps( string|string[] $handles, bool $recursion = false, int|false $group = false )

Parameters Parameters


(string|string[]) (Required) Item handle (string) or item handles (array of strings).


(bool) (Optional) Internal flag that function is calling itself.

Default value: false


(int|false) (Optional) Group level: level (int), no groups (false).

Default value: false

Return Return

(bool) True on success, false on failure.

Source Source

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

	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;


Changelog Changelog

Version Description
2.1.0 Introduced.

See also See also


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.