edd_display_cart_discount( bool $formatted = false, bool $echo = false )
Show the fully formatted cart discount
Description Description
Note the $formatted paramter was removed from the display_cart_discount() function within EDD_Cart in 2.7 as it was a redundant parameter.
Parameters Parameters
- $formatted
-
(Optional)
Default value: false
- $echo
-
(Optional) Echo?
Default value: false
Return Return
(string) $amount Fully formatted cart discount
Source Source
File: includes/discount-functions.php
Changelog Changelog
Version | Description |
---|---|
1.4.1 | Introduced. |