title: How to get order meta from array in WooCommerce 3+
body: <p>I need to create a function that returns a value to one of my plugins <a href="https://wordpress.org/plugins/woocommerce-dymo-print/" rel="noreferrer"><strong>WooCommerce Dymo Print</strong></a>. It requires <code>$order_id</code>, <code>$label</code> and <code>$object</code>. The <code>$object</code> is the field I need to return the value to.</p>
  
  <p>I created the following code:</p>
  
  <pre><code>add_filter('wc_dymo_order_function', 'wpf_dymo_order_output',10,3);
  function wpf_dymo_order_output( $order_id, $label, $object ) {
  
      if($label=='shipping' &amp;&amp; $object='DEL_DATE') {
  
          //Get order from order ID
          $order=wc_get_order($order_id);
          $del_date='';
  
          $order_data = $order-&gt;get_data(); // The Order data
          $order_del_date = $order_data['delivery_date'];
  
          //Return a list (string) of all product inside this order, make sure it's well formatted before printing.
          return $order_del_date;
      } else {
          //Return order_id if is not correct label and object
          return '';
      }
  }
  </code></pre>
  
  <p>It doesn't seem to work however and I think it's because the delivery_date is nested in an array and I'm not fetching it properly.</p>
  
  <p>The meta data should look something like this.</p>
  
  <pre><code>Array
  (
  [31040763] =&gt; Array
      (
          [shipment_id] =&gt; 31040763
          [tracktrace] =&gt; 3SMYPA000000000
          [shipment] =&gt; Array
              (
                  [barcode] =&gt; 3SMYPA000000000
                  [pickup] =&gt; Array
                      (
                          [postal_code] =&gt; XXXAA
                          [street] =&gt; STRAAT
                          [city] =&gt; STAD
                          [number] =&gt; XX
                          [location_name] =&gt; Gamma
                      )
                  [options] =&gt; Array
                      (
                          [signature] =&gt; 0
                          [delivery_date] =&gt; 2018-03-10 00:00:00
                      )
              )
      )
  )
  </code></pre>
  
  <p>Where the delivery_date is what I need to return</p>