Include 'product_url' wc_get_customer_available_downloads() results

Also required to fix #17925
This commit is contained in:
Claudio Sanches 2017-11-29 19:49:54 -02:00
parent b05cd3f3a7
commit da6c9c769a
1 changed files with 1 additions and 0 deletions

View File

@ -449,6 +449,7 @@ function wc_get_customer_available_downloads( $customer_id ) {
'download_id' => $result->download_id, 'download_id' => $result->download_id,
'product_id' => $_product->get_id(), 'product_id' => $_product->get_id(),
'product_name' => $_product->get_name(), 'product_name' => $_product->get_name(),
'product_url' => $_product->is_visible() ? $_product->get_permalink() : '', // Since 3.3.0.
'download_name' => $download_name, 'download_name' => $download_name,
'order_id' => $order->get_id(), 'order_id' => $order->get_id(),
'order_key' => $order->get_order_key(), 'order_key' => $order->get_order_key(),