WC_Abstract_Legacy_Order::get_download_url( int $product_id, int $download_id )
Get the Download URL.
Description Description
Parameters Parameters
- $product_id
-
(Required)
- $download_id
-
(Required)
Return Return
(string)
Source Source
File: includes/legacy/abstract-wc-legacy-order.php
public function get_download_url( $product_id, $download_id ) {
wc_deprecated_function( 'WC_Order::get_download_url', '3.0', 'WC_Order_Item_Product::get_item_download_url' );
return add_query_arg( array(
'download_file' => $product_id,
'order' => $this->get_order_key(),
'email' => urlencode( $this->get_billing_email() ),
'key' => $download_id,
), trailingslashit( home_url() ) );
}