WordPress at a glance
function is not described

WP_Scripts::print_scripts_l10n() public WP 2.1.0

Deprecated from version 3.3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Prints extra scripts of a registered script.

{} It's a method of the class: WP_Scripts{}

No Hooks.

Return

true|false|String|null. Void if no data exists, extra scripts if $echo is true, true otherwise.

Usage

global $wp_scripts;
$wp_scripts->print_scripts_l10n( $handle, $echo );
$handle(string) (required)
The script's registered handle.
$echo(true|false)
Whether to echo the extra script instead of just returning it.
Default: true

Notes

  • See: print_extra_script()

Changelog

Since 2.1.0 Introduced.
Since 2.8.0 Added the $echo parameter.
Deprecated 3.3.0

Code of WP_Scripts::print_scripts_l10n() WP 5.7.2

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