woocommerce_maxmind_geolocation_database_path
Filter the geolocation database storage path.
Usage
add_filter( 'woocommerce_maxmind_geolocation_database_path', 'wp_kama_woocommerce_maxmind_geolocation_database_path_filter' ); /** * Function for `woocommerce_maxmind_geolocation_database_path` filter-hook. * * @param string $database_path The path to the database. * * @return string */ function wp_kama_woocommerce_maxmind_geolocation_database_path_filter( $database_path ){ // filter... return $database_path; }
- $database_path(string)
- The path to the database.
Changelog
Since 3.9.0 | Introduced. |
Where the hook is called
woocommerce_maxmind_geolocation_database_path
woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-database-service.php 78
return apply_filters( 'woocommerce_maxmind_geolocation_database_path', $database_path );