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)
  • () loaded The result of loading a .mo file. Default null.
    Required: Yes
  • () domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
  • () mofile Path to the MO file.
    Required: Yes
  • () 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 );