WP_Locale_Switcher::switch_to_user_locale()
Method: Switches the translations according to the given user’s locale.
Source: wp-includes/class-wp-locale-switcher.php:111
Method: Switches the translations according to the given user’s locale.
Source: wp-includes/class-wp-locale-switcher.php:111
Method: Returns the locale currently switched to.
Source: wp-includes/class-wp-locale-switcher.php:189
Method: Returns the user ID related to the currently switched locale.
Source: wp-includes/class-wp-locale-switcher.php:206
Method: Constructor.
Source: wp-includes/class-wp-locale-switcher.php:48
Method: Initializes the locale switcher.
Source: wp-includes/class-wp-locale-switcher.php:61
Method: Switches the translations according to the given locale.
Source: wp-includes/class-wp-locale-switcher.php:75
Action Hook: Fires when the locale is switched.
Source: wp-includes/class-wp-locale-switcher.php:98
Method: Restores the translations according to the previous locale.
Source: wp-includes/class-wp-locale-switcher.php:123
Action Hook: Fires when the locale is restored to the previous one.
Source: wp-includes/class-wp-locale-switcher.php:149
Method: Restores the translations according to the original locale.
Source: wp-includes/class-wp-locale-switcher.php:161