wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_load_textdomain › Hooks de Filtros WordPress

Desde6.3.0
Obsoleton/a
› apply_filters( 'pre_load_textdomain', null, $domain, $mofile, $locale )
Parâmetros: (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
Definido em:
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.




Fonte

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