WC_Geolocation::is_geolocation_enabled
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 Geolocation::is geolocation enabled WC 10.3.5
private static function is_geolocation_enabled( $current_settings ) {
return in_array( $current_settings, array( 'geolocation', 'geolocation_ajax' ), true );
}