WP_Scripts::print_translations

SummerySummery

Prints translations set for a specific handle.

Syntax

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

ParametersParameters

$handle

(string) (Required) Name of the script to add the inline script to. Must be lowercase.

$echo

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

Default value: true

ReturnReturn

(string|false) Script on success, false otherwise.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top