WC_Legacy_Customer::__isset
__isset legacy.
Method of the class: WC_Legacy_Customer{}
No Hooks.
Returns
true|false.
Usage
$WC_Legacy_Customer = new WC_Legacy_Customer(); $WC_Legacy_Customer->__isset( $key );
- $key(mixed) (required)
- .
WC_Legacy_Customer::__isset() WC Legacy Customer:: isset code WC 10.3.6
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 );
}