WPDev.one
Core Function
View Source on Trac ↗

get_user_id_from_string()

get_user_id_from_string( mixed $email_or_login )

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

Parameters 1 required

Name / Type Description
$email_or_login
string

Either an email address or a login.

Required

Return Value

(int)
int

Function Information

Since Version
MU (3.0.0)
Source File
wp-includes/ms-deprecated.php
Advertisement