load_script_textdomain


load_script_textdomain ( $handle, $domain = 'default', $path = '' )

Parameters:
  • (string) handle Name of the script to register a translation domain to.
  • (string) domain Optional. Text domain. Default 'default'.
  • (string) path Optional. The full file path to the directory containing translation files.
See:
  • WP_Scripts::set_translations()
Returns:
  • (string|false) The translated strings in JSON encoding on success, false if the script textdomain could not be loaded.
Defined at:
Change Log:
  • 5: .
  • 5: .

Description

Loads the script translated strings.

Related Functions

load_textdomain, load_theme_textdomain, load_child_theme_textdomain, unload_textdomain, load_plugin_textdomain

Top Google Results

User discussions

wpseek mobile