public function init( $data,
$site_id = ''
) { if ( !
isset( $data->ID
) ) { $data->ID = 0;
} $this->data =
$data;
$this->ID =
(int) $data->ID;
$this->
for_site( $site_id );
} /**
* Returns only the main user fields.
*
* @since 3.3.0
* @since 4.4.0 Added 'ID' as an alias of 'id' for the `$field` parameter.
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'.
* @param string|int $value The field value.
* @return object|false Raw user object.
*/