public function get_taxes_total($compound = true, $display = true)
{
$total = 0;
foreach ($this->taxes as $key => $tax) {
if (!$compound && WC_Tax::is_compound($key)) {
continue;
}
$total += $tax;
}
foreach ($this->shipping_taxes as $key => $tax) {
if (!$compound && WC_Tax::is_compound($key)) {
continue;
}
$total += $tax;
}
if ($display) {
$total = wc_round_tax_total($total);
}
return apply_filters('woocommerce_cart_taxes_total', $total, $compound, $display, $this);
}