/** * Returns the price of a download, but only for non-variable priced downloads. * * @since 1.0 * @param int $download_id ID number of the download to retrieve a price for * @return mixed string|int Price of the download */ function edd_get_download_price($download_id = 0) { if (empty($download_id)) { return false; } $download = new EDD_Download($download_id); return $download->get_price(); }