Summery Summery
Retrieve user info by user ID.
Syntax Syntax
Parameters Parameters
- $user_id
-
(Required) User ID
Return Return
(WP_User|false) WP_User object on success, false on failure.
Source Source
File: wp-includes/pluggable.php
*/ function get_userdata( $user_id ) { return get_user_by( 'id', $user_id );
Advertisement
Changelog Changelog
Version | Description |
---|---|
0.71 | Introduced. |