WC_Abstract_Order::get_tax_rates( string $tax_class, array $location_args = array(), object $customer = null )

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


Description Description


Parameters Parameters

$tax_class

(Required) Tax class to get rates for.

$location_args

(Optional) Location to compute rates for. Should be in form: array( country, state, postcode, city).

Default value: array()

$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/abstracts/abstract-wc-order.php




Top ↑

User Contributed Notes User Contributed Notes

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