eo_get_user_id_by
since 2.12.0
eo_get_user_id_by( $field, $value )
Wrapper for get_user_by(). Returns the user ID instead of the object.
Parameters
string
|
$field |
The field to retrieve the user with. id | slug | email | login
|
int|string
|
$value |
A value for $field. A user ID, slug, email address, or login name.
|
Return value
int
|
The ID of the user. 0 on failure.
|
Changelog