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_Shipping_Zone::location_is_country( object $location )
Location type detection.
Description Description
Parameters Parameters
- $location
-
(Required) Location to check.
Return Return
(boolean)
Source Source
File: includes/class-wc-shipping-zone.php
private function location_is_country( $location ) { return 'country' === $location->type; }