WC_Meta_Data::__isset()publicWC 1.0

Checks if a given key exists in our data. This is called internally by empty and isset.

Method of the class: WC_Meta_Data{}

No Hooks.

Return

true|false.

Usage

$WC_Meta_Data = new WC_Meta_Data();
$WC_Meta_Data->__isset( $key );
$key(string) (required)
Key to check if set.

WC_Meta_Data::__isset() code WC 8.7.0

public function __isset( $key ) {
	return array_key_exists( $key, $this->current_data );
}