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

Glossary Term

get_user_by()

3 tags 1 category

get_user_by() — Retrieves user info by a given field.

Inputs: $field (string): The field to retrieve the user with. id | ID | slug | email | login. $value (int|string): A value for $field. A user ID, slug, email address, or login name.

Returns WP_User|false: WP_User object on success, false on failure.

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…