WC_Geolocation::is_geolocation_enabled()
Check if geolocation is enabled.
Method of the class: WC_Geolocation{}
No Hooks.
Return
true|false
.
Usage
$result = WC_Geolocation::is_geolocation_enabled( $current_settings );
- $current_settings(string) (required)
- Current geolocation settings.
Changelog
Since 3.4.0 | Introduced. |
WC_Geolocation::is_geolocation_enabled() WC Geolocation::is geolocation enabled code WC 7.5.1
private static function is_geolocation_enabled( $current_settings ) { return in_array( $current_settings, array( 'geolocation', 'geolocation_ajax' ), true ); }