This function will retrieve the total amount a particular fooditem has earned in sales.
$earnings = edd_get_fooditem_earnings_stats( $fooditem_id );
This function will retrieve the total amount a particular fooditem has earned in sales.
$earnings = edd_get_fooditem_earnings_stats( $fooditem_id );