WordPress at Your Fingertips
function is not described

WC_Abstract_Order::get_tax_rates() protected WC 1.0

Get tax rates for an order. Use order's shipping or billing address, defaults to base location.

{} It's a method of the class: WC_Abstract_Order{}

No Hooks.

Return

Mixed|null. Tax rates.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_tax_rates( $tax_class, $location_args, $customer );
$tax_class(string) (required)
Tax class to get rates for.
$location_args(array)
Location to compute rates for. Should be in form: array( country, state, postcode, city).
Default: array()
$customer(object)
Only used to maintain backward compatibility for filter woocommerce-matched_rates.
Default: null

Code of WC_Abstract_Order::get_tax_rates() WC 5.8.0

protected function get_tax_rates( $tax_class, $location_args = array(), $customer = null ) {
	$tax_location = $this->get_tax_location( $location_args );
	$tax_location = array( $tax_location['country'], $tax_location['state'], $tax_location['postcode'], $tax_location['city'] );
	return WC_Tax::get_rates_from_location( $tax_class, $tax_location, $customer );
}