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