Filters the taxable address for a given customer.
array( $country, $state, $postcode, $city
Sortie :
@param array $taxable_address An array of country, state, postcode, and city for the customer's taxable address. @param object $customer The customer object for which the taxable address is being requested. @return array The filtered taxable address for the customer.
// Modifier la valeur avec le filtre 'woocommerce_customer_taxable_address'
add_filter('woocommerce_customer_taxable_address', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array( $country) {
// Modifier la valeur
return array( $country;
}
Chargement des actualités...