WC_Tax::get_base_tax_rates()
Get's an array of matching rates for the shop's base country.
Method of the class: WC_Tax{}
Hooks from the method
Return
Array
.
Usage
$result = WC_Tax::get_base_tax_rates( $tax_class );
- $tax_class(string)
- Tax Class.
Default: ''
WC_Tax::get_base_tax_rates() WC Tax::get base tax rates code WC 9.3.3
public static function get_base_tax_rates( $tax_class = '' ) { return apply_filters( 'woocommerce_base_tax_rates', self::find_rates( array( 'country' => WC()->countries->get_base_country(), 'state' => WC()->countries->get_base_state(), 'postcode' => WC()->countries->get_base_postcode(), 'city' => WC()->countries->get_base_city(), 'tax_class' => $tax_class, ) ), $tax_class ); }