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: - Introduced in WordPress: 5.0.2
- Deprecated in WordPress: —
Description
Loads the translation data for the given script handle and text domain.