WC_Order::savepublicWC 3.0.0

Save data to the database.

Method of the class: WC_Order{}

No Hooks.

Returns

Int. order ID

Usage

$WC_Order = new WC_Order();
$WC_Order->save();

Changelog

Since 3.0.0 Introduced.

WC_Order::save() code WC 10.6.2

public function save() {
	$this->maybe_set_user_billing_email();
	parent::save();
	$this->status_transition();

	return $this->get_id();
}