WC_Shipping_Zone::location_is_country()privateWC 1.0

Location type detection.

Method of the class: WC_Shipping_Zone{}

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->location_is_country( $location );
$location(object) (required)
Location to check.

WC_Shipping_Zone::location_is_country() code WC 8.7.0

private function location_is_country( $location ) {
	return 'country' === $location->type;
}