Summery Summery

Prints scripts.

Syntax Syntax

WP_Scripts::print_scripts( string|string[]|false $handles = false, int|false $group = false )

Description Description

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

Parameters Parameters


(string|string[]|false) (Optional) Scripts to be printed: queue (false), single script (string), or multiple scripts (array of strings).

Default value: false


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

Default value: false

Return Return

(string[]) Handles of scripts that have been printed.

Source 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
2.8.0 Added the $group parameter.
2.1.0 Introduced.


Leave a Reply

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