WordPress at Your Fingertips
function is not described

WC_Legacy_Cart::get_discounts_after_tax() public WC 1.0

Deprecated from version 2.3.0 Coupons can not be applied after tax.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Gets the order discount amount - these are applied after tax.

{} It's a method of the class: WC_Legacy_Cart{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Legacy_Cart = new WC_Legacy_Cart();
$WC_Legacy_Cart->get_discounts_after_tax();

Changelog

Deprecated Since 2.3.0 Coupons can not be applied after tax.

Code of WC_Legacy_Cart::get_discounts_after_tax() WC 5.7.1

public function get_discounts_after_tax() {
	wc_deprecated_function( 'get_discounts_after_tax', '2.3' );
}