WP_Scripts::print_scripts_l10n()
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.
Return
true|false|String|null
. Void if no data exists, extra scripts if $display is true, true otherwise.
Usage
global $wp_scripts; $wp_scripts->print_scripts_l10n( $handle, $display );
- $handle(string) (required)
- The script's registered handle.
- $display(true|false)
- Whether to print 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 $display parameter. |
Deprecated since | 3.3.0 |
WP_Scripts::print_scripts_l10n() WP Scripts::print scripts l10n code WP 6.7.1
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 ); }