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

get_userdatabylogin( string $user_login )

Retrieve user info by login name.


Description Description

See also See also


Top ↑

Parameters Parameters

$user_login

(string) (Required) User's username


Top ↑

Return Return

(bool|object) False on failure, User DB row object


Top ↑

Source Source

File: wp-includes/pluggable-deprecated.php

function get_userdatabylogin($user_login) {
	_deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('login')" );
	return get_user_by('login', $user_login);
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Use get_user_by()
0.71 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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