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.
DraftOrders::ensure_draft_status_registered()
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.
Description Description
Source Source
File: packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php