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: - Introduced in WordPress: 5.0.0
- Deprecated in WordPress: —
Description
Loads the script translated strings.