WC_Geolocation::disable_geolocation_on_legacy_php
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.
Prevent geolocation via MaxMind when using legacy versions of php.
Method of the class: WC_Geolocation{}
No Hooks.
Returns
String.
Usage
$result = WC_Geolocation::disable_geolocation_on_legacy_php( $default_customer_address );
- $default_customer_address(string) (required)
- current value.
Changelog
| Since 3.4.0 | Introduced. |
| Deprecated since | 3.9.0 |
WC_Geolocation::disable_geolocation_on_legacy_php() WC Geolocation::disable geolocation on legacy php code WC 10.7.0
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;
}