title: How to retrieve Shipping Method of an Order in WooCommerce?
body: <p>I am developing an eCommerce website on Wordpress using WooCommerce. I want to retrieve and display the 'Shipping Method' (i.e. Delivery or Collection etc.), that the customer had selected at the time of checkout, on the Order Confirmation page (i.e. after payment).</p>
  
  <p>I am trying to do this using <code>get_post_meta($post_id, $key, $single)</code> function. I am unable to do so as I don't know the $key value.</p>
  
  <p>I tried the following code (within php tag):</p>
  
  <pre><code>echo get_post_meta( $order_id, 'shipping_method', true );
  </code></pre>
  
  <p>But it returns a blank value (no display on the page). I am assuming that I am using incorrect <code>$key</code>.</p>
  
  <p>I am open to suggestions to use some other (simpler) method also to achieve this.</p>