edd_get_download_final_price( int $download_id, array $user_purchase_info, string $amount_override = null )
Retrieves the final price of a downloadable product after purchase this price includes any necessary discounts that were applied
Description Description
Parameters Parameters
- $download_id
-
(Required) ID of the download
- $user_purchase_info
-
(Required) - an array of all information for the payment
- $amount_override
-
(Optional) a custom amount that over rides the 'edd_price' meta, used for variable prices
Default value: null
Return Return
(string) - the price of the download
Source Source
File: includes/download-functions.php
Changelog Changelog
Version | Description |
---|---|
1.0 | Introduced. |