WC_Geolocation::is_geolocation_enabled()private staticWC 3.4.0

Check if geolocation is enabled.

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

Хуков нет.

Возвращает

true|false.

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

$result = WC_Geolocation::is_geolocation_enabled( $current_settings );
$current_settings(строка) (обязательный)
Current geolocation settings.

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

С версии 3.4.0 Введена.

Код WC_Geolocation::is_geolocation_enabled() WC 8.7.0

private static function is_geolocation_enabled( $current_settings ) {
	return in_array( $current_settings, array( 'geolocation', 'geolocation_ajax' ), true );
}