Automattic\WooCommerce\StoreApi\Utilities

OrderController::default_order_status()publicWC 1.0

Changes default order status to draft for orders created via this API.

Method of the class: OrderController{}

No Hooks.

Return

String.

Usage

$OrderController = new OrderController();
$OrderController->default_order_status();

OrderController::default_order_status() code WC 9.3.1

public function default_order_status() {
	return 'checkout-draft';
}