wphooks.info - switch_locale

switch_locale

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/class-wp-locale-switcher.php:
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
		$this->change_locale( $locale );

		/**
		 * Fires when the locale is switched.
		 *
		 * @since 4.7.0
		 *
		 * @param string $locale The new locale.
		 */
		do_action( 'switch_locale', $locale );

		return true;
	}

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