title: How to get order items ids to get some product meta data?
body: <p>I'm trying to extract item meta value from Woocommerce's orders by using:</p>
  
  <pre><code>$data = wc_get_order_item_meta( $item, '_tmcartepo_data', true );
  </code></pre>
  
  <p>However, I can't find a way to get order_item_id as the first parameter (using get_items)</p>
  
  <pre><code>global $woocommerce, $post, $wpdb;
  $order = new WC_Order($post-&gt;ID);
  $items = $order-&gt;get_items(); 
  
  foreach ( $items as $item ) {
      $item_id = $item['order_item_id']; //???
      $data = wc_get_order_item_meta( $item_id, '_tmcartepo_data', true );
      $a = $data[0]['value'];
      $b = $data[1]['value'];
      echo $a;
      echo $b;
  }
  </code></pre>
  
  <p>And I mean this order item_id (1 and 2)</p>
  
  <p><a href="http://i.stack.imgur.com/8OJ7U.jpg" rel="noreferrer">Order_item_id in database - Image</a></p>
  
  <p>How can I don that?</p>
  
  <p>Thanks.</p>