get_user_info

Use  get_userdata( int $user_id ) in wordpress it returns WP_User object