Tribe__Tickets_Plus__Commerce__WooCommerce__Orders__Table::item_get_discount( $item )
Get the amount of the discount to be applied
Contents
Parameters
- $item
-
(Required) The line item with the data to process the order
Return
(float)
Source
File: src/Tribe/Commerce/WooCommerce/Orders/Table.php
public static function item_get_discount( $item ) {
return (float) $item['subtotal'] - (float) $item['total'];
}
Changelog
| Version | Description |
|---|---|
| 4.7.3 | Introduced. |