edd_is_free_download( int $download_id, int $price_id = false )
Checks whether or not a download is free
Description Description
Parameters Parameters
- $download_id
-
(Required) ID number of the download to check
- $price_id
-
(Optional) (Optional) ID number of a variably priced item to check
Default value: false
Return Return
(bool) $is_free True if the product is free, false if the product is not free or the check fails
Source Source
File: includes/download-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1 | Introduced. |