woocommerce_geolocation_local_database_path
Устарел с версии 3.9.0. Больше не поддерживается и может быть удален. Рекомендуется заменить этот хук на аналог.
Filter the geolocation database storage path.
Использование
add_filter( 'woocommerce_geolocation_local_database_path', 'wp_kama_woocommerce_geolocation_local_database_path_filter', 10, 3 ); /** * Function for `woocommerce_geolocation_local_database_path` filter-hook. * * @param string $database_path The path to the database. * @param int $version Deprecated since 3.4.0. * @param $string * * @return string */ function wp_kama_woocommerce_geolocation_local_database_path_filter( $database_path, $version, $string ){ // filter... return $database_path; }
- $database_path(строка)
- The path to the database.
- $version(int)
- Deprecated since 3.4.0.
- $string
- -
Список изменений
Устарела с | 3.9.0 |
Где вызывается хук
woocommerce_geolocation_local_database_path
woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-database-service.php 65-70
$database_path = apply_filters_deprecated( 'woocommerce_geolocation_local_database_path', array( $database_path, 2 ), '3.9.0', 'woocommerce_maxmind_geolocation_database_path' );