WP_Scripts::print_scripts_l10n

Advertisement

Deprecated Deprecated

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

Summery Summery

Prints extra scripts of a registered script.

Syntax Syntax

WP_Scripts::print_scripts_l10n( string $handle, bool $echo = true )

Parameters Parameters

$handle

(string) (Required) The script's registered handle.

$echo

(bool) (Optional) Whether to echo the extra script instead of just returning it.

Default value: true

Return Return

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

Source Source

File: wp-includes/class.wp-scripts.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
3.3.0 This method has been deprecated. Use print_extra_script() instead.
2.8.0 Added the $echo parameter.
2.1.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.