Filter the customer default location after geolocation.
$default_location
Sortie :
@param array $customer_location The customer location with keys 'country' and 'state'. @return array
// Modifier la valeur avec le filtre 'woocommerce_customer_default_location_array'
add_filter('woocommerce_customer_default_location_array', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($default_location) {
// Modifier la valeur
return $default_location;
}
Chargement des actualités...