edd_is_file_at_download_limit( int $download_id, int $payment_id, int $file_id, int|false $price_id = false )
Checks if a file is at its download limit
Description Description
This limit refers to the maximum number of times files connected to a product can be downloaded.
Parameters Parameters
- $download_id
-
(Required) Download ID
- $payment_id
-
(Required) Payment ID
- $file_id
-
(Required) File ID
- $price_id
-
(Optional) Price ID
Default value: false
Return Return
(bool) True if at limit, false otherwise
Source Source
File: includes/download-functions.php
Changelog Changelog
Version | Description |
---|---|
1.3.1 | Introduced. |