WC_Geolocation::get_local_database_path
Deprecated since 3.9.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Path to our local db.
Method of the class: WC_Geolocation{}
No Hooks.
Returns
String
.
Usage
$result = WC_Geolocation::get_local_database_path( $deprecated );
- $deprecated(string)
- Deprecated since 3.4.0.
Default: '2'
Changelog
Deprecated since | 3.9.0 |
WC_Geolocation::get_local_database_path() WC Geolocation::get local database path code WC 9.9.4
public static function get_local_database_path( $deprecated = '2' ) { wc_deprecated_function( 'WC_Geolocation::get_local_database_path', '3.9.0' ); $integration = wc()->integrations->get_integration( 'maxmind_geolocation' ); return $integration->get_database_service()->get_database_path(); }