WC_Cart::get_cart_contents_tax()
Gets cart tax amount.
Method of the class: WC_Cart{}
Hooks from the method
Return
float
.
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->get_cart_contents_tax();
Changelog
Since 3.2.0 | Introduced. |
WC_Cart::get_cart_contents_tax() WC Cart::get cart contents tax code WC 9.5.1
public function get_cart_contents_tax() { return apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'cart_contents_tax' ) ); }