WordPress at Your Fingertips
function is not described

WC_Geolocation::is_geolocation_enabled() private WC 3.4.0

Check if geolocation is enabled.

{} It's a 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.

Code of WC_Geolocation::is_geolocation_enabled() WC 5.9.0

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