title: Woocommerce - php to get order information
body: <p>I'm trying to get the data associated with an order on the woocommerce plugin (wordpress). Currently, I have written my own plugin that contains the code:</p>
  
  <pre><code>&lt;?php 
  global $woocommerce;
  $order = new WC_Order($order_id);
  $order_shipping_total = $order-&gt;get_shipping();
  echo $order_shipping_total;
  ?&gt;
  </code></pre>
  
  <p>This is just to test it out, I don't believe this is working- BUT what I actually need is to get a list of the orders that have a certain order status, and then be able to access the fields(like first name) for each order in this list.  How do I go about doing this?
  Also, what files do I include to make this work? The class-wc-order() file?</p>