WordPress filter hook
woocommerce_cart_remove_taxes_zero_rate_id
Defined by WooCommerce and fired by 10 plugins in total, running on 7.1M+ sites between them.
“Controls the zero rate tax ID.”
How to use woocommerce_cart_remove_taxes_zero_rate_id
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_cart_remove_taxes_zero_rate_id', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
10 plugins that fire woocommerce_cart_remove_taxes_zero_rate_id
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )includes/class-wc-checkout.php:733 -
WooCommerce Square80,000+ installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )includes/Framework/PaymentGateway/ApplePay/Payment_Gateway_Apple_Pay_Orders.php:127 -
Phone Orders for WooCommerce1,000+ installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )classes/class-wc-phone-orders-cart-updater.php:1780 -
XL NMI Gateway for WooCommerce800+ installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )lib/skyverge/woocommerce/payment-gateway/apple-pay/class-sv-wc-payment-gateway-apple-pay-orders.php:123 -
WebPOS50+ installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )includes/frontend/orders.php:418 -
Saga Payments for WooCommerce20+ installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )includes/class-saga-payments-gateway.php:13663 -
Cryptocurrency Product for WooCommerce10+ installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )cryptocurrency-product-for-woocommerce.php:1189 -
Subscriptions & Recurring Payments for WooCommerce10+ installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )inc/classes/class-awc-subscriptions-checkout.php:201 -
Ultimo Woocommerce Email Plugin10+ installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )tools/woocommerce/payment-gateway/apple-pay/class-sv-wc-payment-gateway-apple-pay-orders.php:121 -
TogetherPay for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' )class/WC_Gateway_SplitOff.php:1785
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.