woocommerce_geolocation_local_database_path

FILTER woocommerce\includes\wc-update-functions.php (ligne 2076) github
We've moved the MaxMind database to a new location, as per the TOS' requirement that the database not be publicly accessible.

Paramètres

Entrée :
WP_CONTENT_DIR . '/uploads/GeoLite2-Country.mmdb', 2
Sortie :
N/A

Utilisation

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

function ma_fonction_filtre(WP_CONTENT_DIR . '/uploads/GeoLite2-Country.mmdb') {
    // Modifier la valeur
    return WP_CONTENT_DIR . '/uploads/GeoLite2-Country.mmdb';
}

Actualités

Chargement des actualités...