woocommerce_matched_rates
Usage
add_filter( 'woocommerce_matched_rates', 'wp_kama_woocommerce_matched_rates_filter', 10, 3 ); /** * Function for `woocommerce_matched_rates` filter-hook. * * @param $matched_tax_rates * @param $tax_class * @param $customer * * @return */ function wp_kama_woocommerce_matched_rates_filter( $matched_tax_rates, $tax_class, $customer ){ // filter... return $matched_tax_rates; }
- $matched_tax_rates
- -
- $tax_class
- -
- $customer
- -
Where the hook is called
woocommerce_matched_rates
woocommerce/includes/class-wc-tax.php 515
return apply_filters( 'woocommerce_matched_rates', $matched_tax_rates, $tax_class, $customer );