wpseek.com
A WordPress-centric search engine for devs and theme authors



get_user › WordPress Function

Since6.7.0
Deprecatedn/a
get_user ( $user_id )
Parameters:
  • (int) $user_id User ID.
    Required: Yes
Returns:
  • (WP_User|false) WP_User object on success, false on failure.
Defined at:
Codex:

Retrieves user info by user ID.



Source

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