Merge pull request #18408 from macbookandrew/downloadable_items_filter

add file array key similar to other functions
This commit is contained in:
Claudiu Lodromanean 2018-02-08 10:38:12 -08:00 committed by GitHub
commit 59b61ab744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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'],
),
); );
} }
} }