diff --git a/includes/class-wc-order.php b/includes/class-wc-order.php index f734c24bdf9..f5a8643ef45 100644 --- a/includes/class-wc-order.php +++ b/includes/class-wc-order.php @@ -1377,6 +1377,10 @@ class WC_Order extends WC_Abstract_Order { 'order_key' => $this->get_order_key(), 'downloads_remaining' => $file['downloads_remaining'], 'access_expires' => $file['access_expires'], + 'file' => array( + 'name' => $file['name'], + 'file' => $file['file'], + ), ); } }