WC_Geolocation::disable_geolocation_on_legacy_php()public staticWC 3.4.0

Устарела с версии 3.9.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Prevent geolocation via MaxMind when using legacy versions of php.

Метод класса: WC_Geolocation{}

Хуков нет.

Возвращает

Строку.

Использование

$result = WC_Geolocation::disable_geolocation_on_legacy_php( $default_customer_address );
$default_customer_address(строка) (обязательный)
current value.

Список изменений

С версии 3.4.0 Введена.
Устарела с 3.9.0

Код WC_Geolocation::disable_geolocation_on_legacy_php() WC 8.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;
}