Warning: This method has been deprecated.
WC_Geolocation::disable_geolocation_on_legacy_php( string $default_customer_address )
Prevent geolocation via MaxMind when using legacy versions of php.
Description Description
Parameters Parameters
- $default_customer_address
-
(Required) current value.
Return Return
(string)
Source Source
File: includes/class-wc-geolocation.php
public static function disable_geolocation_on_legacy_php( $default_customer_address ) {
wc_deprecated_function( 'WC_Geolocation::disable_geolocation_on_legacy_php', '3.9.0' );
if ( self::is_geolocation_enabled( $default_customer_address ) ) {
$default_customer_address = 'base';
}
return $default_customer_address;
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.9.0 | This method has been deprecated. |
| 3.4.0 | Introduced. |