WP_Scripts::print_scripts()publicWP 2.1.0

Prints scripts.

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

Метод класса: WP_Scripts{}

Хуков нет.


Строку[]. Handles of scripts that have been printed.


global $wp_scripts;
$wp_scripts->print_scripts( $handles, $group );
Scripts to be printed: queue (false), single script (string), or multiple scripts (array of strings).
По умолчанию: false
Group level: level (int), no groups (false).
По умолчанию: false

Список изменений

С версии 2.1.0 Введена.
С версии 2.8.0 Added the $group parameter.

Код WP_Scripts::print_scripts() WP 6.1.1

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