WordPress at Your Fingertips
function is not described

WC_Meta_Data::__get() public WC 1.0

Returns the value of any property.

{} It's a method of the class: WC_Meta_Data{}

No Hooks.

Return

Mixed. Property value or NULL if it does not exists

Usage

$WC_Meta_Data = new WC_Meta_Data();
$WC_Meta_Data->__get( $key );
$key(string) (required)
Key to get.

Code of WC_Meta_Data::__get() WC 5.8.0

public function __get( $key ) {
	if ( array_key_exists( $key, $this->current_data ) ) {
		return $this->current_data[ $key ];
	}
	return null;
}