Introduce woocommerce_tax_rate_classes filter that can be hooked into to add custom tax rate classes dynamically.
This commit is contained in:
parent
b600b00091
commit
81a99868f2
|
@ -760,7 +760,7 @@ class WC_Tax {
|
|||
wp_cache_set( $cache_key, $tax_rate_classes, 'taxes' );
|
||||
}
|
||||
|
||||
return $tax_rate_classes;
|
||||
return apply_filter( 'woocommerce_tax_rate_classes', $tax_rate_classes );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue