WordPress at a glance
function is not described

WC_Abstract_Legacy_Order::get_download_url() public WC 1.0

Get the Download URL.

{} It's a 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)
-

Code of WC_Abstract_Legacy_Order::get_download_url() WC 5.0.0

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