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


Top ↑

Return Return

(float) The discounted amount


Top ↑

Source Source

File: includes/cart/class-edd-cart.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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