WC_Shipping_Zone::location_is_continent()
Location type detection.
Метод класса: WC_Shipping_Zone{}
Хуков нет.
Возвращает
true|false
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->location_is_continent( $location );
- $location(объект) (обязательный)
- Location to check.
Код WC_Shipping_Zone::location_is_continent() WC Shipping Zone::location is continent WC 9.5.1
private function location_is_continent( $location ) { return 'continent' === $location->type; }