woocommerce_maxmind_geolocation_update_database_periodically filter-hookWC 3.9.0

Allows for the automatic database update to be disabled. Note that MaxMind's TOS requires that the databases be updated or removed periodically.

Usage

add_filter( 'woocommerce_maxmind_geolocation_update_database_periodically', 'wp_kama_woocommerce_maxmind_geolocation_update_database_periodically_filter' );

/**
 * Function for `woocommerce_maxmind_geolocation_update_database_periodically` filter-hook.
 * 
 * @param bool $bind_updater Whether or not the database should be updated periodically.
 *
 * @return bool
 */
function wp_kama_woocommerce_maxmind_geolocation_update_database_periodically_filter( $bind_updater ){

	// filter...
	return $bind_updater;
}
$bind_updater(true|false)
Whether or not the database should be updated periodically.

Changelog

Since 3.9.0 Introduced.

Where the hook is called

WC_Integration_MaxMind_Geolocation::__construct()
woocommerce_maxmind_geolocation_update_database_periodically
woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php 75
$bind_updater = apply_filters( 'woocommerce_maxmind_geolocation_update_database_periodically', $bind_updater );

Where the hook is used in WooCommerce

Usage not found.