DraftOrders::ensure_draft_status_registered()

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

Used by 1 function | Uses 1 function