get_userdata() – Retrieve user info by user ID.

You appear to be a bot. Output may be restricted

Description

Retrieve user info by user ID.

Usage

$WP_User|false = get_userdata( $user_id );

Parameters

$user_id
( int ) required – User ID

Returns

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

Source

File name: wordpress/wp-includes/pluggable.php
Lines:

1 to 3 of 3
  function get_userdata( $user_id ) {
    return get_user_by( 'id', $user_id );
  }
 

 View on GitHub View on Trac