Overrides the text domain and path used to load translations for a script module.
Description
Translations for script modules are loaded automatically from the default text domain and language directory. Use this function only when a module's text domain differs from 'default' or when translation files live outside the standard location, for example plugin modules using their own text domain.
Parameters
$idstring
The identifier of the script module.
$domainstringoptional
Text domain. Default 'default'.Default: 'default'
$pathstringoptional
The full file path to the directory containing translation files.Default: ''
Return
bool
True if the text domain was registered, false if the module is not registered.
Signature, return type and hooks compared across 2 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/script-modules.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.