Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Geolocation::is_geolocation_enabled( string $current_settings )
Check if geolocation is enabled.
Description Description
Parameters Parameters
- $current_settings
-
(Required) Current geolocation settings.
Return Return
(bool)
Source Source
File: includes/class-wc-geolocation.php
private static function is_geolocation_enabled( $current_settings ) { return in_array( $current_settings, array( 'geolocation', 'geolocation_ajax' ), true ); }
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |