woocommerce_customer_taxable_address

FILTER woocommerce\includes\class-wc-customer.php (ligne 220) github
Filters the taxable address for a given customer.

Paramètres

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

Utilisation

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

Actualités

Chargement des actualités...