WC_Meta_Data::__get( string $key )
Returns the value of any property.
Description Description
Parameters Parameters
- $key
-
(Required) Key to get.
Return Return
(mixed) Property value or NULL if it does not exists
Source Source
File: includes/class-wc-meta-data.php
public function __get( $key ) {
if ( array_key_exists( $key, $this->current_data ) ) {
return $this->current_data[ $key ];
}
return null;
}