WordPress at Your Fingertips
function is not described

WC_Meta_Data::__construct() public WC 1.0

Constructor.

{} It's a 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()

Code of WC_Meta_Data::__construct() WC 5.8.0

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