WC_Shipping_Zone::location_is_state()
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_state( $location );
- $location(object) (required)
- Location to check.
WC_Shipping_Zone::location_is_state() WC Shipping Zone::location is state code WC 9.4.2
private function location_is_state( $location ) { return 'state' === $location->type; }