{"id":1024,"date":"2020-11-21T13:50:15","date_gmt":"2020-11-21T18:50:15","guid":{"rendered":"https:\/\/websitepsychiatrist.com\/?p=1024"},"modified":"2025-03-20T09:37:18","modified_gmt":"2025-03-20T13:37:18","slug":"woocommerce-custom-order-statuses","status":"publish","type":"post","link":"https:\/\/websitepsychiatrist.com\/woocommerce-custom-order-statuses\/","title":{"rendered":"WooCommerce Custom Order Statuses"},"content":{"rendered":"\n<p>If you need Custom Order Statuses in WooCommerce, you can purchase a <a href=\"https:\/\/woocommerce.com\/products\/woocommerce-order-status-manager\/\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">plugin<\/a> from WooCommerce for $49 a year for the rest of your life, or you can add this code to the functions.php of your child WordPress theme<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function register_awaiting_shipment_order_status() {\n    register_post_status( 'wc-awaiting-shipment', array(\n        'label'                     => 'Awaiting shipment',\n        'public'                    => true,\n        'exclude_from_search'       => false,\n        'show_in_admin_all_list'    => true,\n        'show_in_admin_status_list' => true,\n        'label_count'               => _n_noop( 'Awaiting shipment &lt;span class=\"count\">(%s)&lt;\/span>', 'Awaiting shipment &lt;span class=\"count\">(%s)&lt;\/span>' )\n    ) );\n}\nadd_action( 'init', 'register_awaiting_shipment_order_status' );\n\/\/ Add to list of WC Order statuses\nfunction add_awaiting_shipment_to_order_statuses( $order_statuses ) {\n    $new_order_statuses = array();\n    \/\/ add new order status after processing\n    foreach ( $order_statuses as $key => $status ) {\n        $new_order_statuses&#91; $key ] = $status;\n        if ( 'wc-processing' === $key ) {\n            $new_order_statuses&#91;'wc-awaiting-shipment'] = 'Awaiting shipment';\n        }\n    }\n    return $new_order_statuses;\n}\nadd_filter( 'wc_order_statuses', 'add_awaiting_shipment_to_order_statuses' );<\/code><\/pre>\n\n\n\n<p>Granted, the WooCommerce solution is infinitely more robust, but if you&#8217;re just needing some order statuses to keep track of things, this is the cleanest and quickest way to do it.<\/p>\n\n\n\n<p>Source: <a href=\"https:\/\/stackoverflow.com\/questions\/53227402\/adding-multiple-custom-order-statuses-in-woocommerce\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">https:\/\/stackoverflow.com\/questions\/53227402\/adding-multiple-custom-order-statuses-in-woocommerce<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you need Custom Order Statuses in WooCommerce, you can purchase a plugin from WooCommerce for $49 a year for the rest of your life, or you can add this code to the functions.php of your child WordPress theme Granted, the WooCommerce solution is infinitely more robust, but if you&#8217;re just needing some order statuses &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"WooCommerce Custom Order Statuses\" class=\"read-more button\" href=\"https:\/\/websitepsychiatrist.com\/woocommerce-custom-order-statuses\/#more-1024\" aria-label=\"Read more about WooCommerce Custom Order Statuses\">Read more<\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1024","post","type-post","status-publish","format-standard","hentry","category-articles","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/posts\/1024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/comments?post=1024"}],"version-history":[{"count":1,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/posts\/1024\/revisions"}],"predecessor-version":[{"id":1025,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/posts\/1024\/revisions\/1025"}],"wp:attachment":[{"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/media?parent=1024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/categories?post=1024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/tags?post=1024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}