edd_get_download_file_url( string $key, string $email, int $filekey, int $download_id, bool|int $price_id = false )

Get Download File Url Constructs a secure file download url for a specific file.


Description Description


Parameters Parameters

$key

(Required) Payment key. Use edd_get_payment_key() to get key.

$email

(Required) Customer email address. Use edd_get_payment_user_email() to get user email.

$filekey

(Required) Index of array of files returned by edd_get_download_files() that this download link is for.

$download_id

(Optional) ID of download this download link is for. Default is 0.

$price_id

(Optional) Price ID when using variable prices. Default is false.

Default value: false


Top ↑

Return Return

(string) A secure download URL


Top ↑

Source Source

File: includes/download-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.