Add new order status woocommerce

To add a new order status in WooCommerce, you can follow these steps:

Method 1: Using the WooCommerce settings

  1. Log in to your WordPress dashboard and navigate to WooCommerce > Settings.
  2. Click on the Orders tab.
  3. Scroll down to the Order statuses section.
  4. Click on the Add order status button.
  5. Enter a name for the new order status (e.g. "In Progress").
  6. Enter a description for the new order status (optional).
  7. Click Add order status to save the new status.

Method 2: Using PHP code

  1. Create a new file in the wp-content/plugins directory of your WordPress installation. For example, you can name it custom-order-status.php.
  2. Add the following code to the file:
    
    <?php
    /*
    Plugin Name: Custom Order Status
    Description: Adds a new order status to WooCommerce
    */

function custom_order_status() { woocommerce_add_order_status( 'in_progress', array( 'label' => __( 'In Progress' ), 'order_statuses' => array( 'pending', 'processing' ), 'order_status' => 'in_progress', ) ); } add_action( 'woocommerce_order_status_in_progress', 'custom_order_status' );


3. Save the file and upload it to your WordPress installation.
4. Go to the **WooCommerce** > **Settings** page and click on the **Save Changes** button.

**Method 3: Using a plugin**

There are several plugins available that allow you to add custom order statuses to WooCommerce. For example, you can use the **WooCommerce Order Status Manager** plugin.

1. Install and activate the plugin.
2. Go to the **WooCommerce Order Status Manager** settings page.
3. Click on the **Add Order Status** button.
4. Enter a name for the new order status (e.g. "In Progress").
5. Enter a description for the new order status (optional).
6. Click **Add Order Status** to save the new status.

Once you've added the new order status, you can use it to update the status of orders in your WooCommerce store.