WC_Geolocation::is_geolocation_enabled()private staticWC 3.4.0

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() code WC 8.7.0

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