apply_filters( ‘load_script_translations’, string $translations, string $file, string $handle, string $domain )

In this article

Filters script translations for the given file, script handle and text domain.

Parameters

$translationsstring
JSON-encoded translation data.
$filestring
Path to the translation file that was loaded.
$handlestring
Name of the script to register a translation domain to.
$domainstring
The text domain.

Source

return apply_filters( 'load_script_translations', $translations, $file, $handle, $domain );

Changelog

VersionDescription
5.0.2Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.