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


Top ↑

Return Return

(float) The discounted amount


Top ↑

Source Source

File: includes/discount-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.9 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.