Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_user_locale()

3 tags 1 category

get_user_locale() — 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().

Inputs: $user (int|WP_User): User’s ID or a WP_User object. Defaults to current user.

Returns string: The locale of the user.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…