wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_load_textdomain › WordPress Filter Hooks

Since6.3.0
Deprecatedn/a
apply_filters( 'pre_load_textdomain', null, $domain, $mofile, $locale )
Parameters: (4)
  • (bool|null) $loaded The result of loading a .mo file. Default null.
    Required: Yes
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
  • (string) $mofile Path to the MO file.
    Required: Yes
  • (string|null) $locale Locale.
    Required: Yes
Defined at:
Codex:

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.





Source

$loaded = apply_filters( 'pre_load_textdomain', null, $domain, $mofile, $locale );