Setting a tax class based on specific coupon in Woocommerce
问题 This has been answered a while back but the filter is not working anymore. Not sure if it is deprecated or not. I am using both filters: woocommerce_product_tax_class woocommerce_product_get_tax_class My function looks like: function wc_diff_rate_for_user( $tax_class, $product ) { $tax_class = "Zero rate"; return $tax_class; } add_filter( 'woocommerce_product_tax_class', 'wc_diff_rate_for_user', 1, 2 ); How can I set a tax class based on specific coupon in Woocommerce? 回答1: Since Woocommerce