edd_get_cart_item_discount_amount( array $item = array(), bool|string $discount = false )
Get the discounted amount on a price
Description Description
Parameters Parameters
- $item
-
(Optional) Cart item array
Default value: array()
- $discount
-
(Optional) False to use the cart discounts or a string to check with a discount code
Default value: false
Return Return
(float) The discounted amount
Source Source
File: includes/discount-functions.php
Changelog Changelog
Version | Description |
---|---|
1.9 | Introduced. |