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



pre_determine_locale › Hooks de Filtros WordPress

Desde5.0.0
Obsoleton/a
› apply_filters( 'pre_determine_locale', null )
Parâmetros:
  • () locale The locale to return and short-circuit. Default null.
    Required: Yes
Definido em:
Codex:

Filters the locale for the current request prior to the default determination process.

Using this filter allows to override the default logic, effectively short-circuiting the function.




Fonte

$determined_locale = apply_filters( 'pre_determine_locale', null );