woocommerce_base_tax_rates filter-hookWC 1.0

Get's an array of matching rates for the shop's base country.

Usage

add_filter( 'woocommerce_base_tax_rates', 'wp_kama_woocommerce_base_tax_rates_filter' );

/**
 * Function for `woocommerce_base_tax_rates` filter-hook.
 * 
 * @param  $tax_class 
 *
 * @return 
 */
function wp_kama_woocommerce_base_tax_rates_filter( $tax_class ){

	// filter...
	return $tax_class;
}
$tax_class
-

Where the hook is called

WC_Tax::get_base_tax_rates()
woocommerce_base_tax_rates
woocommerce/includes/class-wc-tax.php 524-536
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
);

Where the hook is used in WooCommerce

Usage not found.