WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Routes

Checkout::set_draft_order_id() private WC 1.0

Updates draft order data in the customer session.

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

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->set_draft_order_id( $order_id );
$order_id(int) (required)
Draft order ID.

Code of Checkout::set_draft_order_id() WC 5.8.0

private function set_draft_order_id( $order_id ) {
	wc()->session->set( 'store_api_draft_order', $order_id );
}