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