WordPress at Your Fingertips
function is not described

WC_Legacy_Cart::get_order_discount_total() public WC 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).

{} It's a 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.

Code of WC_Legacy_Cart::get_order_discount_total() WC 5.6.0

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