woocommerce_geolocation_update_database_periodically
Устарел с версии 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 |
Где вызывается хук
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' );