WordPress at Your Fingertips
function is not described

WC_Geolocation::update_database() public WC 1.0

Deprecated from version 3.9.0 Extract files with PharData. Tool built into PHP since 5.3.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Update geoip database.

{} It's a method of the class: WC_Geolocation{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Geolocation::update_database();

Changelog

Deprecated 3.9.0
Extract files with PharData. Tool built into PHP Since 5.3 .

Code of WC_Geolocation::update_database() WC 5.9.0

public static function update_database() {
	wc_deprecated_function( 'WC_Geolocation::update_database', '3.9.0' );
	$integration = wc()->integrations->get_integration( 'maxmind_geolocation' );
	$integration->update_database();
}