2020-05-02 / 3997阅 / 悠然
Retrieve user info by a given field
(string)
(Required)
The field to retrieve the user with. id | ID | slug | email | login.
(int|string)
(Required)
A value for $field. A user ID, slug, email address, or login name.
(WP_User|false) WP_User object on success, false on failure.