get_user_by_email( string $email ): bool|object

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

Retrieve user info by email.

Description

See also

Parameters

$emailstringrequired
User’s email address

Return

bool|object False on failure, User DB row object

Source

function get_user_by_email($email) {
	_deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('email')" );
	return get_user_by('email', $email);
}

Changelog

VersionDescription
3.3.0Use get_user_by()
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.