WP_Scripts::print_scripts_l10n()publicWP 2.1.0

Устарела с версии 3.3.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Prints extra scripts of a registered script.

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

Хуков нет.

Возвращает

true|false|Строку|null. Void if no data exists, extra scripts if $display is true, true otherwise.

Использование

global $wp_scripts;
$wp_scripts->print_scripts_l10n( $handle, $display );
$handle(строка) (обязательный)
The script's registered handle.
$display(true|false)
Whether to print the extra script instead of just returning it.
По умолчанию: true

Заметки

  • Смотрите: print_extra_script()

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

С версии 2.1.0 Введена.
С версии 2.8.0 Added the $display parameter.
Устарела с 3.3.0

Код WP_Scripts::print_scripts_l10n() WP 6.5.2

public function print_scripts_l10n( $handle, $display = true ) {
	_deprecated_function( __FUNCTION__, '3.3.0', 'WP_Scripts::print_extra_script()' );
	return $this->print_extra_script( $handle, $display );
}