WC_Legacy_Customer::__isset
__isset legacy.
Метод класса: WC_Legacy_Customer{}
Хуков нет.
Возвращает
true|false.
Использование
$WC_Legacy_Customer = new WC_Legacy_Customer(); $WC_Legacy_Customer->__isset( $key );
- $key(разное) (обязательный)
- .
Код WC_Legacy_Customer::__isset() WC Legacy Customer:: isset WC 10.7.0
public function __isset( $key ) {
$legacy_keys = array(
'id',
'country',
'state',
'postcode',
'city',
'address_1',
'address',
'address_2',
'shipping_country',
'shipping_state',
'shipping_postcode',
'shipping_city',
'shipping_address_1',
'shipping_address',
'shipping_address_2',
'is_vat_exempt',
'calculated_shipping',
);
$key = $this->filter_legacy_key( $key );
return in_array( $key, $legacy_keys );
}