Prints scripts.
Prints the scripts passed to it or the print queue. Also prints all necessary dependencies.
(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
(string[]) Handles of scripts that have been printed.
File: wp-includes/class.wp-scripts.php
public function print_scripts( $handles = false, $group = false ) { return $this->do_items( $handles, $group ); }
Version | Description |
---|---|
2.8.0 | Added the $group parameter. |
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_scripts/print_scripts