woocommerce_geolocation_update_database_periodically хук-фильтрWC 1.0

Устарел с версии 3.9.0. Больше не поддерживается и может быть удален. Рекомендуется заменить этот хук на аналог.

Allows for the automatic database update to be disabled.

Использование

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
-

Список изменений

Устарела с 3.9.0

Где вызывается хук

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'
);

Где используется хук в WooCommerce

Использование не найдено.