WP_Locale_Switcher::change_locale()
Method: Changes the site’s locale to the given one.
Source: wp-includes/class-wp-locale-switcher.php:224
Method: Changes the site’s locale to the given one.
Source: wp-includes/class-wp-locale-switcher.php:224
Action Hook: Fires when the locale is switched to or restored.
Source: wp-includes/class-wp-locale-switcher.php:238
Method: Filters the locale of the WordPress installation.
Source: wp-includes/class-wp-locale-switcher.php:171
Method: Load translations for a given locale.
Source: wp-includes/class-wp-locale-switcher.php:192
Method: Switches the translations according to the given locale.
Source: wp-includes/class-wp-locale-switcher.php:72
Action Hook: Fires when the locale is switched.
Source: wp-includes/class-wp-locale-switcher.php:93
Method: Restores the translations according to the previous locale.
Source: wp-includes/class-wp-locale-switcher.php:105
Action Hook: Fires when the locale is restored to the previous one.
Source: wp-includes/class-wp-locale-switcher.php:130
Method: Restores the translations according to the original locale.
Source: wp-includes/class-wp-locale-switcher.php:142
Method: Whether switch_to_locale() is in effect.
Source: wp-includes/class-wp-locale-switcher.php:159
Class: Core class used for switching locales.
Source: wp-includes/class-wp-locale-switcher.php:16
Method: Constructor.
Source: wp-includes/class-wp-locale-switcher.php:48
Method: Initializes the locale switcher.
Source: wp-includes/class-wp-locale-switcher.php:60