W3cubDocs

/WordPress

do_action( 'restore_previous_locale', string $locale, string $previous_locale )

Fires when the locale is restored to the previous one.

Parameters

$locale

(string) The new locale.

$previous_locale

(string) The previous locale.

Source

File: wp-includes/class-wp-locale-switcher.php

View on Trac

Changelog

Version Description
4.7.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/restore_previous_locale