WC_Meta_Data::__construct()
Constructor.
Method of the class: WC_Meta_Data{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Meta_Data = new WC_Meta_Data(); $WC_Meta_Data->__construct( $meta );
- $meta(array)
- Data to wrap behind this function.
Default: array()
WC_Meta_Data::__construct() WC Meta Data:: construct code WC 9.3.1
public function __construct( $meta = array() ) { $this->current_data = $meta; $this->apply_changes(); }