WC_Data_Store::create()publicWC 3.0.0

Create an object in the data store.

Method of the class: WC_Data_Store{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Data_Store = new WC_Data_Store();
$WC_Data_Store->create( $data );
$data(WC_Data) (required) (passed by reference — &)
WooCommerce data instance.

Changelog

Since 3.0.0 Introduced.

WC_Data_Store::create() code WC 8.7.0

public function create( &$data ) {
	$this->instance->create( $data );
}