wphooks.info - print_scripts_array

print_scripts_array

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class.wp-scripts.php:
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
	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;
	}

	/**
	 * Processes items and dependencies for the head group.
	 *
	 * @since 2.8.0
	 *