woocommerce_geolocation_ajax_get_location_hash

FILTER woocommerce\includes\class-wc-cache-helper.php (ligne 177) github
Controls the location hash used in geolocation-based caching.

Paramètres

Entrée :
$location_hash, $location, $customer
Sortie :
@param string      $location_hash The hash used for geolocation.
@param array       $location      The location/address data.
@param WC_Customer $customer      The current customer object.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_geolocation_ajax_get_location_hash'
add_filter('woocommerce_geolocation_ajax_get_location_hash', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($location_hash) {
    // Modifier la valeur
    return $location_hash;
}

Actualités

Chargement des actualités...