apply_filters( 'pre_determine_locale', string|null $locale )
Filters the locale for the current request prior to the default determination process.
Description
Using this filter allows to override the default logic, effectively short-circuiting the function.
Parameters
- $locale
-
(string|null) The locale to return and short-circuit. Default null.
Source
File: wp-includes/l10n.php
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_determine_locale