Core Function
View Source on Trac ↗ load_script_translations()
load_script_translations( mixed $file, mixed $handle, mixed $domain ) Loads the translation data for the given script handle and text domain.
Parameters 3 required
| Name / Type | Description |
|---|---|
| (string | | false) $file Path to the translation file to load. False if there isn't one. Required |
| $handle string | Name of the script to register a translation domain to. Required |
| $domain string | The text domain. Required |
Return Value
((string)
(string | false) The JSON-encoded translated strings for the given script handle and text domain.
False if there are none.
Function Information
Since Version
5.0.2
Source File
wp-includes/l10n.php
Advertisement