get_user_id_from_string

DeprecatedDeprecated

This function has been deprecated. Use get_user_by() instead.

SummerySummery

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

Syntax

get_user_id_from_string( string $string )

DescriptionDescription

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

ParametersParameters

$string

(string) (Required) Either an email address or a login.

ReturnReturn

(int)

SourceSource

File: wp-includes/ms-deprecated.php


			

ChangelogChangelog

Changelog
Version Description
3.6.0 Use get_user_by()
MU (3.0.0) Introduced.

See alsoSee also

Scroll to Top