WC_Geolocation::get_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 function with the same one.
Path to our local db.
Method of the class: WC_Geolocation{}
No Hooks.
Return
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 8.7.0
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(); }