| @@ 776-779 (lines=4) @@ | ||
| 773 | } |
|
| 774 | } |
|
| 775 | ||
| 776 | if ( apply_filters( 'woocommerce_cart_hide_zero_taxes', true ) ) { |
|
| 777 | $amounts = array_filter( wp_list_pluck( $tax_totals, 'amount' ) ); |
|
| 778 | $tax_totals = array_intersect_key( $tax_totals, $amounts ); |
|
| 779 | } |
|
| 780 | ||
| 781 | return apply_filters( 'woocommerce_cart_tax_totals', $tax_totals, $this ); |
|
| 782 | } |
|
| @@ 615-618 (lines=4) @@ | ||
| 612 | $tax_totals[ $code ]->formatted_amount = wc_price( wc_round_tax_total( $tax_totals[ $code ]->amount ), array( 'currency' => $this->get_currency() ) ); |
|
| 613 | } |
|
| 614 | ||
| 615 | if ( apply_filters( 'woocommerce_order_hide_zero_taxes', true ) ) { |
|
| 616 | $amounts = array_filter( wp_list_pluck( $tax_totals, 'amount' ) ); |
|
| 617 | $tax_totals = array_intersect_key( $tax_totals, $amounts ); |
|
| 618 | } |
|
| 619 | ||
| 620 | return apply_filters( 'woocommerce_order_tax_totals', $tax_totals, $this ); |
|
| 621 | } |
|