title: include the custom field in Woocommerce in my IPN
body: <p>Hi I use Woocommerce plugin. All works great, I have added a custom field or attribute to a product which is fine and it shows on the products detail page but my problem is getting this data to come through in the PayPal IPN.</p>
  
  <p>I am trying to edit this code as I believe the custom field data is held in meta but cannot find the id of my custom field or where to add it: </p>
  
  <pre><code>// Cart Contents
                      $item_loop = 0;
                      if ( sizeof( $order-&gt;get_items() ) &gt; 0 ) {
                              foreach ( $order-&gt;get_items() as $item ) {
                                      if ( $item['qty'] ) {
  
                                              $item_loop++;
  
                                              $product = $order-&gt;get_product_from_item( $item );
  
                                              $item_name         = $item['name'];
  
                                              $item_meta = new WC_Order_Item_Meta( $item['item_meta'] );
                                              if ( $meta = $item_meta-&gt;display( true, true ) )
                                                      $item_name .= ' ( ' . $meta . ' )';
  
                                              $paypal_args[ 'item_name_' . $item_loop ]         = html_entity_decode( $item_name, ENT_NOQUOTES, 'UTF-8' );
                                              $paypal_args[ 'quantity_' . $item_loop ]         = $item['qty'];
                                              $paypal_args[ 'amount_' . $item_loop ]                 = $order-&gt;get_item_subtotal( $item, false );
  
                                              if ( $product-&gt;get_sku() )
                                                      $paypal_args[ 'item_number_' . $item_loop ] = $product-&gt;get_sku();
                                      }
                              }
                      }
  </code></pre>
  
  <p>Need to change script that send "order_id" to PayPal on script to send my custom field to PayPal. That's all.</p>
  
  <p>Appreciate any answers. Thanks.!</p>