woocommerce_maxmind_geolocation_update_database_periodically
Allows for the automatic database update to be disabled. Note that MaxMind's TOS requires that the databases be updated or removed periodically.
Использование
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.
Список изменений
С версии 3.9.0 | Введена. |
Где вызывается хук
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 );