Introduce woocommerce_tax_rate_classes filter that can be hooked into to add custom tax rate classes dynamically.

This commit is contained in:
Gerhard 2019-08-08 11:35:22 +02:00
parent b600b00091
commit 81a99868f2
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**