WC_Abstract_Legacy_Order::get_download_url()publicWC 1.0

Get the Download URL.

Method of the class: WC_Abstract_Legacy_Order{}

No Hooks.

Return

String.

Usage

$WC_Abstract_Legacy_Order = new WC_Abstract_Legacy_Order();
$WC_Abstract_Legacy_Order->get_download_url( $product_id, $download_id );
$product_id(int) (required)
-
$download_id(int) (required)
-

WC_Abstract_Legacy_Order::get_download_url() code WC 8.6.1

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() ) );
}