Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Checkout::is_valid_draft_order( WC_Order $order_object )

Whether the passed argument is a draft order or an order that is pending/failed and the cart hasn’t changed.


Description Description


Parameters Parameters

$order_object

(Required) Order object to check.


Top ↑

Return Return

(boolean) Whether the order is valid as a draft order.


Top ↑

Source Source

File: packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.