/** * Get stats of the products, specifying some more arguments * * @since 3.8.14 * @param array $args Arguments. See {@link WPSC_Purchase_Log::fetch_stats()}. * @return array 'earnings' and 'sales' stats */ public function get_stats($args) { $this->fetch_products(); $args['products'] = $this->products; return WPSC_Purchase_Log::fetch_stats($args); }