Filter the customer default location before geolocation.
$default_location_string ?? ''
Sortie :
@param string $default_location_string The default location. @return string
// Modifier la valeur avec le filtre 'woocommerce_customer_default_location'
add_filter('woocommerce_customer_default_location', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($default_location_string ?? '') {
// Modifier la valeur
return $default_location_string ?? '';
}
Chargement des actualités...