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
See also
Parameters
- $username
(string)(Required)Username.
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); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Use get_user_by() |
MU (3.0.0) | Introduced. |