Glossary Term
wp_set_script_translations()
3 tags
1 category
wp_set_script_translations() — Sets translated strings for a script. Works only if the script has already been registered.
Inputs: $handle (string): Script handle the textdomain will be attached to. $domain (string): Optional. Text domain. Default ‘default’. $path (string): Optional. The full file path to the directory containing translation files.
Returns bool: True if the text domain was successfully localized, false otherwise.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
