WP_Scripts::print_scripts_l10n()publicWP 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.

Method of the class: WP_Scripts{}

No Hooks.


true|false|String|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(string) (required)
The script's registered handle.
Whether to print the extra script instead of just returning it.
Default: true


  • See: print_extra_script()


Since 2.1.0 Introduced.
Since 2.8.0 Added the $display parameter.
Deprecated since 3.3.0

WP_Scripts::print_scripts_l10n() code WP 6.5.3

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 );