Fires when the locale is switched to or restored.
WP_Locale_Switcher::change_locale
Changes the site’s locale to the given one.
WP_Locale_Switcher::load_translations
Load translations for a given locale.
WP_Locale_Switcher::filter_locale
Filters the locale of the WordPress installation.
Advertisement
WP_Locale_Switcher::is_switched
Whether switch_to_locale() is in effect.
WP_Locale_Switcher::restore_current_locale
Restores the translations according to the original locale.
restore_previous_locale
Fires when the locale is restored to the previous one.
WP_Locale_Switcher::restore_previous_locale
Restores the translations according to the previous locale.
Advertisement
switch_locale
Fires when the locale is switched.
WP_Locale_Switcher::switch_to_locale
Switches the translations according to the given locale.
WP_Locale_Switcher::init
Initializes the locale switcher.
WP_Locale_Switcher::__construct
Constructor.
Advertisement
WP_Locale_Switcher
Core class used for switching locales.