Prints extra scripts of a registered script.
$handlestringrequired
$displaybooloptional
Default:true
$display is true, true otherwise.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 );
}
| Version | Description |
|---|---|
| 3.3.0 | This method has been deprecated. Use print_extra_script() instead. |
| 2.8.0 | Added the $display parameter. |
| 2.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_scripts/print_scripts_l10n