ClassicPress logo
Skip to content
Filter by type:

Browse:

  • Home
  • wp-includes/class-wp-locale-switcher.php

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

Used by 0 functions | Uses 0 functions

WP_Locale_Switcher::get_switched_locale()

Method: Returns the locale currently switched to.

Source: wp-includes/class-wp-locale-switcher.php:189

Used by 0 functions | Uses 0 functions

WP_Locale_Switcher::get_switched_user_id()

Method: Returns the user ID related to the currently switched locale.

Source: wp-includes/class-wp-locale-switcher.php:206

Used by 0 functions | Uses 0 functions

WP_Locale_Switcher

Class: Core class used for switching locales.

Source: wp-includes/class-wp-locale-switcher.php:16

Used by 0 functions | Uses 0 functions

WP_Locale_Switcher::__construct()

Method: Constructor.

Source: wp-includes/class-wp-locale-switcher.php:48

Used by 0 functions | Uses 0 functions

WP_Locale_Switcher::init()

Method: Initializes the locale switcher.

Source: wp-includes/class-wp-locale-switcher.php:61

Used by 0 functions | Uses 0 functions

WP_Locale_Switcher::switch_to_locale()

Method: Switches the translations according to the given locale.

Source: wp-includes/class-wp-locale-switcher.php:75

Used by 0 functions | Uses 0 functions

switch_locale

Action Hook: Fires when the locale is switched.

Source: wp-includes/class-wp-locale-switcher.php:98

Used by 0 functions | Uses 0 functions

WP_Locale_Switcher::restore_previous_locale()

Method: Restores the translations according to the previous locale.

Source: wp-includes/class-wp-locale-switcher.php:123

Used by 0 functions | Uses 0 functions

restore_previous_locale

Action Hook: Fires when the locale is restored to the previous one.

Source: wp-includes/class-wp-locale-switcher.php:149

Used by 0 functions | Uses 0 functions
1 2 Next »
ClassicPress Documentation • Made with ClassicPress
Privacy Policy