override_load_textdomain WordPress Filter Hook
The override_load_textdomain hook allows a plugin to override the default domain loading behavior. This can be useful if a plugin needs to load a textdomain that is not properly registered.
apply_filters( 'override_load_textdomain', bool $override , string $domain , string $mofile ) #
Filters whether to override the .mo file loading.
Parameters
- $override
(bool)Whether to override the .mo file loading. Default false.
- $domain
(string)Text domain. Unique identifier for retrieving translated strings.
- $mofile
(string)Path to the MO file.
Source
File: wp-includes/l10n.php
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |