A WordPress-centric search engine for devs and theme authors



pre_determine_locale ›

Since5.0.0
Deprecatedn/a
apply_filters( 'pre_determine_locale', null )
Parameters:
  • (string|null) The locale to return and short-circuit, or null as default.
    Required: Yes
Defined at:
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.





Source

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