wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_determine_locale › WordPress Filter Hooks

Since5.0.0
Deprecatedn/a
apply_filters( 'pre_determine_locale', null )
Parameters:
  • (string|null) $locale The locale to return and short-circuit. Default null.
    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 );