wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_load_textdomain › Filtr WordPress Hooks

Od6.3.0
Przestarzałyn/a
apply_filters( 'pre_load_textdomain', null, $domain, $mofile, $locale )
Parametry: (4)
  • (bool|null) $loaded The result of loading a .mo file. Default null.
    Wymagane: Tak
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Wymagane: Tak
  • (string) $mofile Path to the MO file.
    Wymagane: Tak
  • (string|null) $locale Locale.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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