WP_Scripts::print_scripts_l10n( string $handle, bool $display = true ): bool|string|void

This method has been deprecated. Use print_extra_script() instead.

Prints extra scripts of a registered script.

Description

See also

Parameters

$handlestringrequired
The script’s registered handle.
$displaybooloptional
Whether to print the extra script instead of just returning it.

Default:true

Return

bool|string|void Void if no data exists, extra scripts if $display is true, true otherwise.

Source

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

Changelog

VersionDescription
3.3.0This method has been deprecated. Use print_extra_script() instead.
2.8.0Added the $display parameter.
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.