woocommerce_geolocation_local_database_path
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.
Filter the geolocation database storage path.
Usage
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(string)
- The path to the database.
- $version(int)
- Deprecated since 3.4.0.
- $string
- -
Changelog
Deprecated since | 3.9.0 |
Where the hook is called
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' );