WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Routes

Checkout::get_draft_order_id() private WC 1.0

Gets draft order data from the customer session.

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

No Hooks.

Return

Array.

Usage

// private - for code of main (parent) class only
$result = $this->get_draft_order_id();

Code of Checkout::get_draft_order_id() WC 5.8.0

private function get_draft_order_id() {
	return wc()->session->get( 'store_api_draft_order', 0 );
}