title: WooCommerce new order action - get order information
body: <p>I am using this to create a new function in my <code>functions.php</code> file</p>
  
  <pre><code>add_action( 'woocommerce_new_order', 'create_invoice_for_wc_order',  1, 1  );
  function create_invoice_for_wc_order() {
  
  }
  </code></pre>
  
  <p>it is to execute some custom code when a new order is placed, how can i get the order information (ordered products etc) inside my function</p>