WC_Legacy_Cart::apply_cart_discounts_after_tax
Deprecated since 2.3.0 Coupons can not be applied after tax.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Function to apply cart discounts after tax.
Method of the class: WC_Legacy_Cart{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Legacy_Cart = new WC_Legacy_Cart(); $WC_Legacy_Cart->apply_cart_discounts_after_tax( $values, $price );
- $values(required)
- .
- $price(required)
- .
Changelog
| Deprecated since 2.3.0 | Coupons can not be applied after tax. |
WC_Legacy_Cart::apply_cart_discounts_after_tax() WC Legacy Cart::apply cart discounts after tax code WC 10.7.0
public function apply_cart_discounts_after_tax( $values, $price ) {
wc_deprecated_function( 'apply_cart_discounts_after_tax', '2.3' );
}