WC_Order::save() public WC 3.0.0
Save data to the database.
{} It's a method of the class: WC_Order{}
No Hooks.
Return
Int. order ID
Usage
$WC_Order = new WC_Order(); $WC_Order->save();
Changelog
Since 3.0.0 | Introduced. |
Code of WC_Order::save() WC Order::save WC 5.0.0
public function save() {
$this->maybe_set_user_billing_email();
parent::save();
$this->status_transition();
return $this->get_id();
}