Title: Set default order status &#8221;
Last modified: July 9, 2020

---

# Set default order status ”

 *  Resolved [MiKeZZa](https://wordpress.org/support/users/mikezza/)
 * (@mikezza)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/set-default-order-status/)
 * I use this plugin; [https://nl.wordpress.org/plugins/wc-place-order-without-payment/](https://nl.wordpress.org/plugins/wc-place-order-without-payment/)
   to have an order process without payment. The proces is more a ‘I want to rent
   this products’ and from there one the customers and site owner get in contact.
 * But it can happen that an order changes after this. You can only change the content
   of an order when the status is ‘Pending payment’. So I would like to have all
   the order to start in this status. Is this possible?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fset-default-order-status%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [mother.of.code](https://wordpress.org/support/users/imazed/)
 * (@imazed)
 * The Mother of Code
 * [5 years, 10 months ago](https://wordpress.org/support/topic/set-default-order-status/#post-13101595)
 * Hi there! Yes, that’s certainly possible, but you’ll need a bit of custom code
   to get it working. Instructions can be found here: [https://www.knowband.com/blog/tips/how-to-change-the-default-order-status-on-woo-commerce/](https://www.knowband.com/blog/tips/how-to-change-the-default-order-status-on-woo-commerce/)
 * Hope that helps!
 *  Thread Starter [MiKeZZa](https://wordpress.org/support/users/mikezza/)
 * (@mikezza)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/set-default-order-status/#post-13101756)
 * Ok [@imazed](https://wordpress.org/support/users/imazed/). Sounds good. But I
   want it to be set to a status where the order can be edited. So that’s ‘pending
   payment’, right?
 * So how am I going to do that?
 *     ```
       /**
        * Plugin Name: My First Plugin
        * Plugin URI: http://www.mywebsite.com/my-first-plugin
        * Description: Change order status by default to 
        * Version: 1.0
        * Author: Erwin Slob
        * Author URI: https://www.eswebmedia.nl
        */
   
       #<editor-fold defaultstate="collapsed" desc="Default Status as Pending">
       function action_woocommerce_payment_complete( $order_id ) {  
             if( ! $order_id ) return;
               $order = wc_get_order( $order_id );  
               $order->update_status( 'pending' );
       };  
   
       // add the action  
       add_action( 'woocommerce_payment_complete', 'action_woocommerce_payment_complete', 10, 3 );  
       #</editor-fold>
       ```
   
 * But I’m not sure about this. What must the status be? Is pending correct? Your
   example gives wc-print-invoice, but I can’t find out where this is coming from…
 *  [Woocommerce Programmer](https://wordpress.org/support/users/woocommerceprogrammer/)
 * (@woocommerceprogrammer)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/set-default-order-status/#post-13103573)
 * > But I’m not sure about this. What must the status be? Is pending correct? Your
   > example gives wc-print-invoice, but I can’t find out where this is coming from…
 * Here is the list of order status
    ` ‘wc-pending’ => _x( ‘Pending payment’, ‘Order
   status’, ‘woocommerce’ ), ‘wc-processing’ => _x( ‘Processing’, ‘Order status’,‘
   woocommerce’ ), ‘wc-on-hold’ => _x( ‘On hold’, ‘Order status’, ‘woocommerce’ ),‘
   wc-completed’ => _x( ‘Completed’, ‘Order status’, ‘woocommerce’ ), ‘wc-cancelled’
   => _x( ‘Cancelled’, ‘Order status’, ‘woocommerce’ ), ‘wc-refunded’ => _x( ‘Refunded’,‘
   Order status’, ‘woocommerce’ ), ‘wc-failed’ => _x( ‘Failed’, ‘Order status’, ‘
   woocommerce’ ),
 *  Thread Starter [MiKeZZa](https://wordpress.org/support/users/mikezza/)
 * (@mikezza)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/set-default-order-status/#post-13104223)
 * You are awesome! Works great!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Set default order status ”’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [MiKeZZa](https://wordpress.org/support/users/mikezza/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/set-default-order-status/#post-13104223)
 * Status: resolved