woocommerce_order_hide_zero_taxes

woocommerce_order_hide_zero_taxes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_order_hide_zero_taxes') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 535
    			$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 );
    	}