DraftOrders::delete_expired_draft_orders()
Method: Delete draft orders older than a day in batches of 20.
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:181
Method: Delete draft orders older than a day in batches of 20.
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:181
Method: Since it’s possible for third party code to clobber the `$wp_post_statuses` global, we need to do a final check here to make sure the draft post status is registered with the global so that it is not removed by WP_Query status validation checks.
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:217
Method: Asserts whether incoming order results are expected given the query this service class executes.
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:235
Method: Append draft status to a list of statuses.
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:169
Class: Service class for adding DraftOrder functionality to WooCommerce core.
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:15
Method: Constructor
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:32
Method: Set all hooks related to adding Checkout Draft order functionality to Woo Core.
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:39
Method: Installation related logic for Draft order functionality.
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:61
Method: Remove cronjobs if they exist (but only from admin).
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:70
Method: Maybe create cron events.
Source: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php:77