WC_Cart::get_taxes PHP Method

get_taxes() public method

Returns the cart and shipping taxes, merged.
public get_taxes ( ) : array
return array merged taxes
    public function get_taxes()
    {
        $taxes = array();
        // Merge
        foreach (array_keys($this->taxes + $this->shipping_taxes) as $key) {
            $taxes[$key] = (isset($this->shipping_taxes[$key]) ? $this->shipping_taxes[$key] : 0) + (isset($this->taxes[$key]) ? $this->taxes[$key] : 0);
        }
        return apply_filters('woocommerce_cart_get_taxes', $taxes, $this);
    }
WC_Cart