WC_Meta_Data::__construct()publicWC 1.0

Constructor.

Method of the class: WC_Meta_Data{}

No Hooks.

Return

null. Nothing.

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() code WC 7.7.0

public function __construct( $meta = array() ) {
	$this->current_data = $meta;
	$this->apply_changes();
}