WC_Tax::get_rates_from_location( string $tax_class, array $location, object $customer = null )
Get’s an arrau of matching rates from location and tax class. $customer parameter is used to preserve backward compatibility for filter.
Description Description
Parameters Parameters
- $tax_class
-
(Required) Tax class to get rates for.
- $location
-
(Required) Location to compute rates for. Should be in form: array( country, state, postcode, city).
- $customer
-
(Optional) Only used to maintain backward compatibility for filter
woocommerce-matched_rates
.Default value: null
Return Return
(mixed|void) Tax rates.
Source Source
File: includes/class-wc-tax.php