Function edd_is_file_at_download_limit
Checks if a file is at its download limit
This limit refers to the maximum number of times files connected to a product can be downloaded.
Package: EDD\Functions
Copyright: Copyright (c) 2013, Pippin Williamson
License: GNU Public License
Since: 1.3.1
Uses:
Located at includes/download-functions.php
Copyright: Copyright (c) 2013, Pippin Williamson
License: GNU Public License
Since: 1.3.1
Uses:
EDD_Logging::get_log_count()
Located at includes/download-functions.php
Parameters summary
integer |
$download_id = 0 |
Download ID |
integer |
$payment_id = 0 |
Payment ID |
integer |
$file_id = 0 |
File ID |
Return value summary
boolean
|
True if at limit, false otherwise |