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.


Top ↑

Return Return

(bool)


Top ↑

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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.