title: Create an order programmatically with line items in Woocommerce 3+
body: <p>I needed to create a Woocommerce order programatically, however using the 'old' Woocommerce made this  a very dirty procedure.</p>
  
  <p>I had to insert all kind of database records manually, using many update_post_meta calls.</p>
  
  <p>Looking for a better solution.</p>