WC_Meta_Data::__get()
Returns the value of any property.
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.
WC_Meta_Data::__get() WC Meta Data:: get code WC 7.7.0
public function __get( $key ) { if ( array_key_exists( $key, $this->current_data ) ) { return $this->current_data[ $key ]; } return null; }