WC_Legacy_Customer::__isset()publicWC 1.0

__isset legacy.

Method of the class: WC_Legacy_Customer{}

No Hooks.

Return

true|false.

Usage

$WC_Legacy_Customer = new WC_Legacy_Customer();
$WC_Legacy_Customer->__isset( $key );
$key(mixed) (required)
-

WC_Legacy_Customer::__isset() code WC 8.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 );
}