load_script_textdomain


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

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:
  • (false|string) False if the script textdomain could not be loaded, the translated strings in JSON encoding otherwise.
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