title: Status of the Woocommerce order change from processing to complete after the order is placed with COD?
body: <p>I have an online store where customers place an order and it is done with payment as COD. It is integrated with our warehouse management where it will export all the orders at the end of the day to the system from the site.
  The status of the orders places are processing.
  I am trying to make a php cron job where the order status of all these order set as completed when the list of orders are exported.</p>
  
  <p>I have looked at various solutions and all change the order status at the time of placing the order while i want it later, once the data is exported.</p>
  
  <p>If somebody can help me with the php function that sets all the order in the woocommerce to "complete" at some trigger, I would be really grateful.</p>