wppaste
WordPress

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

Since
2.1.0
Source
wp-includes/class-wp-scripts.php:725
Determines script dependencies.

Parameters

$handlesstring|string[]
Item handle (string) or item handles (array of strings).
$recursionbooloptional
Internal flag that function is calling itself. Default false.Default: false
$groupint|falseoptional
Group level: level (int), no groups (false). Default false.Default: false

Return

bool
True on success, false on failure.

Hooks fired · 1

One hook fires while WP_Scripts::all_deps() runs, in this order:

  1. apply_filters( print_scripts_array )filterline 735 (+10 into the body)

    Filters the list of script dependencies left to print.

Uses · 2

Source

	public function all_deps( $handles, $recursion = false, $group = false ) {		$result = 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 $result;	}

History

Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, from src/wp-includes/class-wp-scripts.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.