get_userdatabylogin

Advertisement

Deprecated Deprecated

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

Summery Summery

Retrieve user info by login name.

Syntax Syntax

get_userdatabylogin( string $user_login )

Parameters Parameters

$user_login

(string) (Required) User's username

Return Return

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

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);
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.3.0 Use get_user_by()
0.71 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.