determine_locale WordPress Filter Hook
The determine_locale WordPress hook is used to determine the locale for a given user or site. This can be used to set the language for a specific user or site, or to automatically detect the user's locale based on their browser settings.
apply_filters( 'determine_locale', string $locale ) #
Filters the locale for the current request.
Parameters
- $locale
(string)The locale.
Source
File: wp-includes/l10n.php
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |