get_user_details( string $username )

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

Deprecated functionality to retrieve user information.

Description

See also

Parameters

$usernamestringrequired
Username.

Source

function get_user_details( $username ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'get_user_by()' );
	return get_user_by('login', $username);
}

Changelog

VersionDescription
3.0.0Use get_user_by()
MU (3.0.0)Introduced.

User Contributed Notes

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