title: Get Order subtotal in WooCommerce
body: <p>I have a plugin that outputs a PDF of my orders. One of the sections displays the order total. Currently this displays the total, but I want it to display the subtotal (i.e. the order amount before any coupons etc are applied).</p>
  
  <p>Can anyone help?</p>
  
  <p>This is the current code:</p>
  
  <pre><code>    $order_total = is_callable(array($order, 'get_total')) ? $order-&gt;get_total() : $order-&gt;order_total; ?&gt;
  
      &lt;p id="order-total"&gt;
  &lt;b&gt;&lt;?php _e('ORDER TOTAL:', 'woocommerce');?&gt;&lt;/b&gt;
  &lt;span id="order-total-price"&gt;£&lt;?php echo $order_total;?&gt;&lt;/span&gt;
  </code></pre>