WordPress at Your Fingertips
function is not described

WC_Shipping_Zone::location_is_postcode() private WC 1.0

Location type detection.

{} It's a 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_postcode( $location );
$location(object) (required)
Location to check.

Code of WC_Shipping_Zone::location_is_postcode() WC 5.7.0

private function location_is_postcode( $location ) {
	return 'postcode' === $location->type;
}