jetpack_get_user_locale

Set the admin language, based on user language.

Description

(string) jetpack_get_user_locale(); 

Returns (string)


Usage

  1. if ( !function_exists( 'jetpack_get_user_locale' ) ) { 
  2. require_once '/_inc/lib/admin-pages/class.jetpack-react-page.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_get_user_locale(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/_inc/lib/admin-pages/class.jetpack-react-page.php  
  1. function jetpack_get_user_locale() { 
  2. $locale = get_locale(); 
  3.  
  4. if ( function_exists( 'get_user_locale' ) ) { 
  5. $locale = get_user_locale(); 
  6.  
  7. return $locale;