WC_Legacy_Cart::get_order_discount_total()publicWC 1.0

Deprecated from version 2.3.0 Order discounts (after tax) removed in 2.3.. It is no longer supported and can 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.

Return

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() code WC 8.7.0

public function get_order_discount_total() {
	wc_deprecated_function( 'get_order_discount_total', '2.3' );
	return 0;
}