Function: get_userdatabylogin

get_userdatabylogin( string $user_login )

Retrieve user info by login name.

Parameters

Name Type(s) Default Value Description
$user_login string

User's username

Returns

boolean | object

False on failure, User DB row object

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.