wphooks.info - restore_previous_locale

restore_previous_locale

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/class-wp-locale-switcher.php:
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
		$this->change_locale( $locale );

		/**
		 * Fires when the locale is restored to the previous one.
		 *
		 * @since 4.7.0
		 *
		 * @param string $locale          The new locale.
		 * @param string $previous_locale The previous locale.
		 */
		do_action( 'restore_previous_locale', $locale, $previous_locale );

		return $locale;
	}

	/**
	 * Restores the translations according to the original locale.
	 *
	 * @since 4.7.0
	 *