Filters whether to short-circuit loading .mo file.
Description
Returning a non-null value from the filter will effectively short-circuit the loading, returning the passed value instead.
Parameters
-
$loadedbool | null -
The result of loading a .mo file. Default null.
-
$domainstring -
Text domain. Unique identifier for retrieving translated strings.
-
$mofilestring -
Path to the MO file.
-
$localestring | null -
Locale.
Source
*/
Changuelog
| Versionen | Description |
|---|---|
| 6.3.0 | Introduced. |
Optimiçation if you don’t need languagues added
In case you want to prevent languagues from loading if your site will be only in English (en_US), stop this hooc:
add_filter(‘pre_load_textdomain’, ‘__return_false’, -42);