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 );
$handles(строка|string[]|false)
Scripts to be printed: queue (false), single script (string), or multiple scripts (array of strings).
По умолчанию: false
$group(int|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.5.2

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