From da6c9c769ae002de934d8955aa4bb47b309dd87b Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 29 Nov 2017 19:49:54 -0200 Subject: [PATCH] Include 'product_url' wc_get_customer_available_downloads() results Also required to fix #17925 --- includes/wc-user-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/wc-user-functions.php b/includes/wc-user-functions.php index 96d0d0d2daf..d72f6242399 100644 --- a/includes/wc-user-functions.php +++ b/includes/wc-user-functions.php @@ -449,6 +449,7 @@ function wc_get_customer_available_downloads( $customer_id ) { 'download_id' => $result->download_id, 'product_id' => $_product->get_id(), 'product_name' => $_product->get_name(), + 'product_url' => $_product->is_visible() ? $_product->get_permalink() : '', // Since 3.3.0. 'download_name' => $download_name, 'order_id' => $order->get_id(), 'order_key' => $order->get_order_key(),