2020-05-02 / 2586阅 / 悠然
Retrieves the locale of a user.
If the user has a locale set to a non-empty string then it will be returned. Otherwise it returns the locale of get_locale().
(int|WP_User)
(Required)
User's ID or a WP_User object. Defaults to current user.
(string) The locale of the user.