Filter hook 'pre_load_textdomain'
in WP Core File wp-includes/l10n.php at line 748
Description
Filters whether to short-circuit loading .mo file. Returning a non-null value from the filter will effectively short-circuit the loading, returning the passed value instead.
Occurrences
Filename |
Line Number |
wp-includes/l10n.php |
748 |
Parameters
Type |
Name |
Description |
bool|null |
$loaded |
The result of loading a .mo file. Default null. |
string |
$domain |
Text domain. Unique identifier for retrieving translated strings. |
string |
$mofile |
Path to the MO file. |
string|null |
$locale |
Locale. |
PHP Doc
/**
* Filters whether to short-circuit loading .mo file.
*
* Returning a non-null value from the filter will effectively short-circuit
* the loading, returning the passed value instead.
*
* @since 6.3.0
*
* @param bool|null $loaded The result of loading a .mo file. Default null.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
* @param string $mofile Path to the MO file.
* @param string|null $locale Locale.
*/