Function: get_user_id_from_string

get_user_id_from_string( string $string )

Get a numeric user ID from either an email address or a login.

A numeric string is considered to be an existing user ID and is simply returned as such.


Name Type(s) Default Value Description
$string string

Either an email address or a login.



WordPress Developer Newsletter

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