WC_Cart::get_tax_amount PHP Method

get_tax_amount() public method

Get a tax amount.
public get_tax_amount ( string $tax_rate_id ) : float
$tax_rate_id string
return float amount
    public function get_tax_amount($tax_rate_id)
    {
        return isset($this->taxes[$tax_rate_id]) ? $this->taxes[$tax_rate_id] : 0;
    }
WC_Cart