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


Top ↑

Return Return

(mixed|void) Tax rates.


Top ↑

Source Source

File: includes/class-wc-tax.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.