wphooks.info - change_locale

change_locale

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/class-wp-locale-switcher.php:
223
224
225
226
227
228
229
230
231
232
233
234
		$GLOBALS['wp_locale'] = new WP_Locale();

		/**
		 * Fires when the locale is switched to or restored.
		 *
		 * @since 4.7.0
		 *
		 * @param string $locale The new locale.
		 */
		do_action( 'change_locale', $locale );
	}
}