Filter: wu_cart_discount_rate
Filter the coupon rate before discounts and taxes are calculated.
Currency addons can convert absolute amounts without changing the persisted coupon. Percentage rates must remain percentages.
Parameters
| Name | Type | Description |
|---|---|---|
| $rate | float | Discount rate in the store's base currency. |
| $line_item | \Line_Item | Item receiving the validated coupon. |
| $cart | \Cart | Cart providing the target currency. |
Source
Defined in inc/checkout/class-cart.php at line 2936