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


Top ↑

Return Return

(bool) $is_free True if the product is free, false if the product is not free or the check fails


Top ↑

Source Source

File: includes/download-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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