add file array key similar to other functions
See also https://github.com/woocommerce/woocommerce/blob/master/includes/wc-user-functions.php#L458-L461
This commit is contained in:
parent
d7718df0f9
commit
0b2fbe906b
|
@ -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'],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue