title: WooCommerce woocommerce_new_order_item hook
body: <p>I am using the <code>woocommerce_new_order_item</code> hook in my functions.php file.</p>
  
  <p>The code I have is:</p>
  
  <pre><code>add_action( 'woocommerce_new_order_item', 'wc_order_item_added',  1, 1  );
  function wc_order_item_added($item_id, $item, $order_id) {
      global $mysqli;
  
      //$order = new WC_Order( $item_id );
  
      $sql = $mysqli-&gt;query("INSERT into a_test (one) values ('".$item_id."');");
  }
  </code></pre>
  
  <p>Which I found from: <a href="http://hookr.io/actions/woocommerce_new_order_item/" rel="nofollow">http://hookr.io/actions/woocommerce_new_order_item/</a></p>
  
  <p>But the <code>$order_id</code> variable is not being returned. The only variable that is working is, <code>$item_id</code></p>