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

get_user_details() WordPress Function

The get_user_details() function is used to get the user details from the WordPress database. The function takes the user ID as an argument and returns an object containing the user details.

get_user_details( string $username ) #

Deprecated functionality to retrieve user information.


Description

Top ↑

See also


Top ↑

Parameters

$username

(string)(Required)Username.


Top ↑

Source

File: wp-includes/ms-deprecated.php

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


Top ↑

Changelog

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.