WC_Legacy_Cart::get_order_discount_total
Deprecated since 2.3.0 Order discounts (after tax) removed in 2.3.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Get the total of all order discounts (after tax discounts).
Method of the class: WC_Legacy_Cart{}
No Hooks.
Returns
Int
.
Usage
$WC_Legacy_Cart = new WC_Legacy_Cart(); $WC_Legacy_Cart->get_order_discount_total();
Changelog
Deprecated since 2.3.0 | Order discounts (after tax) removed in 2.3. |
WC_Legacy_Cart::get_order_discount_total() WC Legacy Cart::get order discount total code WC 9.9.3
public function get_order_discount_total() { wc_deprecated_function( 'get_order_discount_total', '2.3' ); return 0; }