WordPress at a glance
action is not described

restore_previous_locale action-hook . WP 4.7.0

Fires when the locale is restored to the previous one.

Usage

add_action( 'restore_previous_locale', 'action_function_name_7982', 10, 2 );
function action_function_name_7982( $locale, $previous_locale ){
	// action...
}
$locale(string)
The new locale.
$previous_locale(string)
The previous locale.

Список изменений

С версии 4.7.0 Введена.

Где вызывается хук

WP_Locale_Switcher::restore_previous_locale()
restore_previous_locale
wp-includes/class-wp-locale-switcher.php 129
do_action( 'restore_previous_locale', $locale, $previous_locale );

Где используется хук в ядре WordPress

Использование не найдено.