WP_Scripts::print_scripts( mixed $handles = false, int $group = false )

Prints scripts.


Description

Prints the scripts passed to it or the print queue. Also prints all necessary dependencies.


Parameters

$handles

(Optional) Scripts to be printed. (void) prints queue, (string) prints that script, (array of strings) prints those scripts.

Default value: false

$group

(Optional) If scripts were queued in groups prints this group number.

Default value: false


Return

(array) Scripts that have been printed.


Source

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

	public function print_scripts( $handles = false, $group = false ) {
		return $this->do_items( $handles, $group );
	}

Changelog

Changelog
Version Description
WP-2.8.0 Added the $group parameter.
WP-2.1.0 Introduced.