Merge pull request #18408 from macbookandrew/downloadable_items_filter
add file array key similar to other functions
This commit is contained in:
commit
59b61ab744
|
@ -1377,6 +1377,10 @@ class WC_Order extends WC_Abstract_Order {
|
||||||
'order_key' => $this->get_order_key(),
|
'order_key' => $this->get_order_key(),
|
||||||
'downloads_remaining' => $file['downloads_remaining'],
|
'downloads_remaining' => $file['downloads_remaining'],
|
||||||
'access_expires' => $file['access_expires'],
|
'access_expires' => $file['access_expires'],
|
||||||
|
'file' => array(
|
||||||
|
'name' => $file['name'],
|
||||||
|
'file' => $file['file'],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue