WC_Order::save()
Save data to the database.
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. |
WC_Order::save() WC Order::save code WC 9.6.1
public function save() { $this->maybe_set_user_billing_email(); parent::save(); $this->status_transition(); return $this->get_id(); }