Title: Status
Last modified: November 8, 2017

---

# Status

 *  Resolved [royalkosmetik17](https://wordpress.org/support/users/royalkosmetik17/)
 * (@royalkosmetik17)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/status-6/)
 * Hello,
 * all orders which are coming in come with the status “on hold”. but I want all
   orders to come in and automatically have the stauts “processing” . Where can 
   I change that?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstatus-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [8 years, 8 months ago](https://wordpress.org/support/topic/status-6/#post-9665590)
 * Howdy!
 * You can use the following code that is found here:
 * [https://metorik.com/blog/autocomplete-all-the-orders-in-woocommerce](https://metorik.com/blog/autocomplete-all-the-orders-in-woocommerce)
 *     ```
       add_action( 'woocommerce_thankyou', 'bryce_wc_autocomplete_order' );
       function bryce_wc_autocomplete_order( $order_id ) {
   
       	// Only continue if have $order_id
       	if ( ! $order_id ) {
       		return;
       	}
   
           	// Get order
           	$order = wc_get_order( $order_id );
   
           	// Update order to completed status
           	$order->update_status( 'processing' );	
       }
       ```
   
 * I just replaced `completed` with `processing`
 * This custom code should be added to your child theme’s `functions.php` file or
   via a plugin that allows custom functions to be added, such as [Code Snippets](https://wordpress.org/plugins/code-snippets/).
   Please don’t add custom code directly to your parent theme’s `functions.php` 
   file as this will be wiped entirely when you update.
 * Cheers!
 *  Thread Starter [royalkosmetik17](https://wordpress.org/support/users/royalkosmetik17/)
 * (@royalkosmetik17)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/status-6/#post-9665636)
 * It does not work.
 *  Thread Starter [royalkosmetik17](https://wordpress.org/support/users/royalkosmetik17/)
 * (@royalkosmetik17)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/status-6/#post-9665663)
 * it works. i had a wrong plugin for css. thanks a lot

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

The topic ‘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/)

 * 3 replies
 * 2 participants
 * Last reply from: [royalkosmetik17](https://wordpress.org/support/users/royalkosmetik17/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/status-6/#post-9665663)
 * Status: resolved