woocommerce_geolocation_update_database_periodically filter-hookWC 1.0

Deprecated from version 3.9.0. It is no longer supported and can be removed in future releases. It is recommended to replace this hook with the same one.

Allows for the automatic database update to be disabled.

Usage

add_filter( 'woocommerce_geolocation_update_database_periodically', 'wp_kama_woocommerce_geolocation_update_database_periodically_filter', 10, 2 );

/**
 * Function for `woocommerce_geolocation_update_database_periodically` filter-hook.
 * 
 * @param  $array  
 * @param  $string 
 *
 * @return 
 */
function wp_kama_woocommerce_geolocation_update_database_periodically_filter( $array, $string ){

	// filter...
	return $array;
}
$array
-
$string
-

Changelog

Deprecated since 3.9.0

Where the hook is called

WC_Integration_MaxMind_Geolocation::__construct()
woocommerce_geolocation_update_database_periodically
woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php 61-66
$bind_updater = apply_filters_deprecated(
	'woocommerce_geolocation_update_database_periodically',
	array( true ),
	'3.9.0',
	'woocommerce_maxmind_geolocation_update_database_periodically'
);

Where the hook is used in WooCommerce

Usage not found.