load_script_translations


load_script_translations ( $file, $handle, $domain )

Parameters:
  • (string|false) $file Path to the translation file to load. False if there isn't one.
  • (string) $handle Name of the script to register a translation domain to.
  • (string) $domain The text domain.
Returns:
  • (string|false) The JSON-encoded translated strings for the given script handle and text domain. False if there are none.
Defined at:

Description

Loads the translation data for the given script handle and text domain.

Related Functions

wp_set_script_translations, load_script_textdomain, wp_load_translations_early, list_translation_updates, wp_get_translation_updates

Top Google Results

User discussions

wpseek mobile