woocommerce_maxmind_geolocation_update_database_periodically

FILTER woocommerce\includes\integrations\maxmind-geolocation\class-wc-integration-maxmind-geolocation.php (ligne 75) github
Allows for the automatic database update to be disabled. Note that MaxMind's TOS requires that the databases be updated or removed periodically.

Paramètres

Entrée :
$bind_updater
Sortie :
@param bool $bind_updater Whether or not the database should be updated periodically.

Utilisation

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

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

Actualités

Chargement des actualités...