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.
-
(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
Return Return
(string) A secure download URL
Source Source
File: includes/download-functions.php
Changelog Changelog
Version | Description |
---|---|
1.0 | Introduced. |