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



pre_determine_locale ›

Seit5.0.0
Veraltetn/v
apply_filters( 'pre_determine_locale', null )
Parameter:
  • (string|null) The locale to return and short-circuit, or null as default.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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