title: Get All Shipping Classes in Woocommerce 3
body: <p>I've been unable to crack this nut, but can't help feel that I'm missing something simple.</p>
  
  <p>I'm developing a WooCommerce plugin that should provide a list of shipping classes on its admin settings page. The following code as suggested in another question's answer indicated that the following should work:</p>
  
  <pre><code>$shipping           = new \WC_Shipping();
  $shipping_classes   = $shipping-&gt;get_shipping_classes();
  var_dump($shipping_classes);
  die();
  </code></pre>
  
  <p>Unfortunately the output is an empty array.</p>
  
  <p>I am using Wordpress 4.9.5 and WooCommerce 3.3.5. Thanks for any help!</p>
  
  <p><strong>UPDATE</strong>
  I have the exact same problem as outlined here:
  <a href="https://stackoverflow.com/questions/49777661/get-terms-returns-invalid-taxonomy/49838326#49838326">get_terms() returns Invalid Taxonomy</a> and have provided a work-around. However, I do not feel that is a solution.</p>