File: wp-includes/class-wp-locale-switcher.php
-
Returns the locale currently switched to.
-
Returns the user ID related to the currently switched locale.
-
Switches the translations according to the given user’s locale.
-
Changes the site’s locale to the given one.
-
hookchange_locale
Fires when the locale is switched to or restored.
-
Filters the locale of the WordPress installation.
-
Load translations for a given locale.
-
Switches the translations according to the given locale.
-
hookswitch_locale
Fires when the locale is switched.
-
Restores the translations according to the previous locale.
-
Fires when the locale is restored to the previous one.
-
Restores the translations according to the original locale.
-
Whether switch_to_locale() is in effect.
-
classWP_Locale_Switcher
Core class used for switching locales.
-
Constructor.
-
Initializes the locale switcher.