title: Get the order fee item details in Woocommerce 3
body: <p>I try to get the name of the fee attached to my order in Woocommerce, I get an array but I don't know how to get the name. </p>
  
  <p>I tried with function <code>get_name ()</code> but it does not work.</p>
  
  <pre><code>$the_order-&gt;get_items( array( 'line_item', 'fee', 'shipping' ) );
  </code></pre>
  
  <p>Raw data output:</p>
  
  <pre><code>[137] =&gt; WC_Order_Item_Fee Object
          (
              [extra_data:protected] =&gt; Array
                  (
                      [tax_class] =&gt; 
                      [tax_status] =&gt; taxable
                      [amount] =&gt; 
                      [total] =&gt; 
                      [total_tax] =&gt; 
                      [taxes] =&gt; Array
                          (
                              [total] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  
              [data:protected] =&gt; Array
                  (
                      [order_id] =&gt; 7795
                      [name] =&gt; Frais de réservation
                      [tax_class] =&gt; 0
                      [tax_status] =&gt; taxable
                      [amount] =&gt; 
                      [total] =&gt; 35
                      [total_tax] =&gt; 0
                      [taxes] =&gt; Array
                          (
                              [total] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  </code></pre>