WordPress at Your Fingertips
function is not described

WC_REST_Legacy_Orders_Controller::create_base_order() protected WC 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Create base WC Order object.

{} It's a method of the class: WC_REST_Legacy_Orders_Controller{}

No Hooks.

Return

WC_Order.

Usage

// protected - for code of main (parent) or child class
$result = $this->create_base_order( $data );
$data(array) (required)
-

Changelog

Deprecated 3.0.0

Code of WC_REST_Legacy_Orders_Controller::create_base_order() WC 5.6.0

protected function create_base_order( $data ) {
	return wc_create_order( $data );
}