woocommerce_order_hide_zero_taxes, true

woocommerce_order_hide_zero_taxes, true

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_order_hide_zero_taxes, true') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 625
    			$tax_totals[ $code ]->amount          += (float) $tax->get_tax_total() + (float) $tax->get_shipping_tax_total();
    			$tax_totals[ $code ]->formatted_amount = wc_price( $tax_totals[ $code ]->amount, array( 'currency' => $this->get_currency() ) );
    		}
    
    		if ( apply_filters( 'woocommerce_order_hide_zero_taxes', true ) ) {
    			$amounts    = array_filter( wp_list_pluck( $tax_totals, 'amount' ) );
    			$tax_totals = array_intersect_key( $tax_totals, $amounts );
    		}
    
    		return apply_filters( 'woocommerce_order_get_tax_totals', $tax_totals, $this );
    	}