get_userdata

Advertisement

Summery Summery

Retrieve user info by user ID.

Syntax Syntax

get_userdata( int $user_id )

Parameters Parameters

$user_id

(int) (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

Changelog
Version Description
0.71 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.