get_userdata( int $user_id )

Retrieve user info by user ID.


Parameters

$user_id

(Required) User ID


Return

(WP_User|false) WP_User object on success, false on failure.


Source

File: wp-includes/pluggable.php

function get_userdata( $user_id ) {
	return get_user_by( 'id', $user_id );
}


Changelog

Changelog
Version Description
WP-0.71 Introduced.