woocommerce_cart_remove_taxes_zero_rate_id filter-hookWC 1.0

Add tax lines to the order.

Usage

add_filter( 'woocommerce_cart_remove_taxes_zero_rate_id', 'wp_kama_woocommerce_cart_remove_taxes_zero_rate_id_filter' );

/**
 * Function for `woocommerce_cart_remove_taxes_zero_rate_id` filter-hook.
 * 
 * @param WC_Order $order Order instance.
 *
 * @return WC_Order
 */
function wp_kama_woocommerce_cart_remove_taxes_zero_rate_id_filter( $order ){

	// filter...
	return $order;
}
$order(WC_Order)
Order instance.

Where the hook is called

WC_Checkout::create_order_tax_lines()
woocommerce_cart_remove_taxes_zero_rate_id
WC_Cart::get_tax_totals()
woocommerce_cart_remove_taxes_zero_rate_id
woocommerce/includes/class-wc-checkout.php 584
if ( $tax_rate_id && apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' ) !== $tax_rate_id ) {
woocommerce/includes/class-wc-cart.php 869
if ( $code || apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' ) === $key ) {

Where the hook is used in WooCommerce

Usage not found.