public function remove_taxes()
{
$this->shipping_tax_total = $this->tax_total = 0;
$this->subtotal = $this->subtotal_ex_tax;
foreach ($this->cart_contents as $cart_item_key => $item) {
$this->cart_contents[$cart_item_key]['line_subtotal_tax'] = $this->cart_contents[$cart_item_key]['line_tax'] = 0;
$this->cart_contents[$cart_item_key]['line_tax_data'] = array('total' => array(), 'subtotal' => array());
}
// If true, zero rate is applied so '0' tax is displayed on the frontend rather than nothing.
if (apply_filters('woocommerce_cart_remove_taxes_apply_zero_rate', true)) {
$this->taxes = $this->shipping_taxes = array(apply_filters('woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated') => 0);
} else {
$this->taxes = $this->shipping_taxes = array();
}
}