edd_get_discounted_amount( string $code, $base_price )
Get Discounted Amount.
Description Description
Parameters Parameters
- $code
-
(Required) Code to calculate a discount for.
-
(Required) string|int $base_price Price before discount.
Return Return
(string) Amount after discount.
Source Source
File: includes/discount-functions.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Updated to use EDD_Discount object. |
1.0 | Introduced. |