do_action( 'change_locale', string $locale )
Fires when the locale is switched to or restored.
Parameters
- $locale
-
(string) The new locale.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/change_locale