On this page
do_action( 'change_locale', string $locale )
Fires when the locale is switched to or restored.
Parameters
$localestring-
The new locale.
Source
File: wp-includes/class-wp-locale-switcher.php. View all references
do_action( 'change_locale', $locale );
Related
Used By
| Used By | Description |
|---|---|
| WP_Locale_Switcher::change_locale() wp-includes/class-wp-locale-switcher.php | Changes the site’s locale to the given one. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/change_locale