How to create a WooCommerce custom order status.

WooCommerce unlimited order status

Connect With Us In Our Social Media

Table of Contents

Post Intro

Streamline Your WooCommerce Order Workflow with Custom Statuses

Ever felt limited by the default WooCommerce order statuses? This code snippet empowers you to create a more granular order tracking system, giving you and your customers a clearer picture of where things stand.

Managing Orders with Granularity

Managing orders efficiently is paramount for any WooCommerce store owner. A crucial aspect of this is providing clear and up-to-date information on the progress of each order, both for your own reference and for your customers. While WooCommerce offers default order statuses like “Processing” and “Completed,” these might not always provide the granularity you need to accurately reflect the unique stages your products go through before reaching the customer’s doorstep.

Enhancing Order Tracking with Custom Statuses

This comprehensive guide dives into a powerful code snippet that empowers you to create custom order statuses within your WooCommerce store. This enables you to establish a more detailed order tracking system, tailored to the specific processes involved in fulfilling your orders. Imagine incorporating statuses like “Awaiting Shipment” to indicate products readied for dispatch, or “Packing” to signify orders currently being prepared for shipping. By implementing these additional statuses, you can provide a clearer picture of the order journey for both yourself and your customers, boosting transparency and fostering trust.

Youtube Tutorial

Login To Access Code Snippet:

Post More Detail

What You’ll Achieve

By implementing this code, you’ll gain the ability to add custom statuses to your WooCommerce order flow. This lets you better reflect the specific stages your products go through before reaching the customer. For instance, you might include statuses like “Awaiting Shipment” or “Packing” to provide more informative tracking details.

How the Code Works

The code tackles this through two functions:

  1. register_new_wc_order_statuses: This function is the engine for creating new statuses. It leverages the register_post_status function built into WordPress to add custom statuses like “Awaiting Shipment” and “Packing” to your WooCommerce order system. Each new status is defined with properties like labels, visibility settings, and counters for displaying the number of orders in that state.

  2. add_new_wc_statuses_to_order_statuses: This function ensures your new statuses are properly integrated within WooCommerce’s order management interface. It filters the existing list of order statuses and strategically inserts your custom statuses after the “wc-processing” status. This way, they appear in a logical order within the workflow.

Installation with a Code Snippet Plugin

To use this code, you can leverage a code snippet plugin like “Code Snippets” or “WPCode.” Here’s how:

  1. Install and activate your chosen code snippet plugin.
  2. Navigate to the plugin’s settings page.
  3. Create a new snippet and paste the provided code into the code editor.
  4. Save the snippet with a descriptive title like “Custom WooCommerce Order Statuses”.


  • You can modify the code to add even more custom statuses by replicating the register_post_status function calls within the register_new_wc_order_statuses function.
  • Ensure the status keys you use in add_new_wc_statuses_to_order_statuses exactly match the ones you defined in register_new_wc_order_statuses.

With these steps, you’ll have a more informative and streamlined WooCommerce order workflow, giving you and your customers a clearer view of the order journey.

Conclusion In summary

This blog post offers a code snippet that allows you to create custom order statuses in WooCommerce. These statuses can be used to provide more granular tracking information about your products, improving the order management experience for both you and your customers.


By implementing the code and following the installation instructions, you can gain a more precise understanding of your order fulfillment process. This can lead to increased efficiency and improved customer satisfaction. The code’s modularity also allows you to add additional custom statuses as needed, making your WooCommerce order workflow truly adaptable to your specific business requirements.


Connect With Us In Our Social Media


Stay UpTo Date with Latest Post And news:

Would love your thoughts, please comment.x

Login To Access Code Snippet:

Stay UpTo Date with Latest Post And news: