WC_Shipping_Zone::location_is_continent
Location type detection.
Method of the class: WC_Shipping_Zone{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->location_is_continent( $location );
- $location(object) (required)
- Location to check.
WC_Shipping_Zone::location_is_continent() WC Shipping Zone::location is continent code WC 10.4.3
private function location_is_continent( $location ) {
return 'continent' === $location->type;
}