Get the customer tax location based on their status and the current page. Used by get_rates(), get_shipping_rates().
$location, $tax_class, $customer
Sortie :
@param string $tax_class string Optional, passed to the filter for advanced tax setups. @param object $customer Override the customer object to get their location. @return array
// Modifier la valeur avec le filtre 'woocommerce_get_tax_location'
add_filter('woocommerce_get_tax_location', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($location) {
// Modifier la valeur
return $location;
}
Chargement des actualités...