This method has been deprecated. Use print_extra_script() instead.
WP_Scripts::print_scripts_l10n( string $handle, bool $echo = true )
Prints extra scripts of a registered script.
Description
See also
Parameters
- $handle
-
(Required) The script's registered handle.
- $echo
-
(Optional) Whether to echo the extra script instead of just returning it.
Default value: true
Return
(bool|string|void) Void if no data exists, extra scripts if $echo
is true, true otherwise.
Source
File: wp-includes/class.wp-scripts.php
public function print_scripts_l10n( $handle, $echo = true ) {
_deprecated_function( __FUNCTION__, 'WP-3.3.0', 'WP_Scripts::print_extra_script()' );
return $this->print_extra_script( $handle, $echo );
}
Changelog
Version | Description |
---|---|
WP-3.3.0 | This method has been deprecated. Use print_extra_script() instead. |
WP-2.8.0 | Added the $echo parameter. |
WP-2.1.0 | Introduced. This method has been deprecated. Use print_extra_script() instead. |