wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_load_textdomain › WordPress Filter Hooks

Seit6.3.0
Veraltetn/v
apply_filters( 'pre_load_textdomain', null, $domain, $mofile, $locale )
Parameter: (4)
  • (bool|null) $loaded The result of loading a .mo file. Default null.
    Erforderlich: Ja
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Erforderlich: Ja
  • (string) $mofile Path to the MO file.
    Erforderlich: Ja
  • (string|null) $locale Locale.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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