EDD_Cart::get_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.
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/cart/class-edd-cart.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |