From e5b39f12c6a3216c27426d00d924336801b2ff80 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Tue, 8 Jan 2019 16:35:54 -0400 Subject: [PATCH] register order auto drafts post status --- includes/class-wc-post-types.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/class-wc-post-types.php b/includes/class-wc-post-types.php index 616b3292bb3..f262777f3ec 100644 --- a/includes/class-wc-post-types.php +++ b/includes/class-wc-post-types.php @@ -547,6 +547,12 @@ class WC_Post_Types { /* translators: %s: number of orders */ 'label_count' => _n_noop( 'Failed (%s)', 'Failed (%s)', 'woocommerce' ), ), + 'wc-auto-draft' => array( + 'public' => false, + 'exclude_from_search' => false, + 'show_in_admin_all_list' => false, + 'show_in_admin_status_list' => false, + ), ) );