woocommerce_get_tax_location

FILTER woocommerce\includes\class-wc-tax.php (ligne 472) github
Get the customer tax location based on their status and the current page. Used by get_rates(), get_shipping_rates().

Paramètres

Entrée :
$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

Utilisation

// 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;
}

Actualités

Chargement des actualités...