Get's an array of matching rates from location and tax class. $customer parameter is used to preserve backward compatibility for filter.
$matched_tax_rates, $tax_class, $customer
Sortie :
@param string $tax_class Tax class to get rates for. @param array $location Location to compute rates for. Should be in form: array( country, state, postcode, city). @param object $customer Only used to maintain backward compatibility for filter `woocommerce-matched_rates`. @return mixed|void Tax rates.
// Modifier la valeur avec le filtre 'woocommerce_matched_rates'
add_filter('woocommerce_matched_rates', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($matched_tax_rates) {
// Modifier la valeur
return $matched_tax_rates;
}
Chargement des actualités...