title: Customizing email subject with dynamic data in Woocommerce
body: <blockquote>
    <p><strong>Not a duplicate of</strong> <a href="https://stackoverflow.com/questions/50766161/display-order-total-with-and-without-vat-in-woocommerces-order-email-notificati">Display order total with and without VAT in Woocommerce&#39;s order email notification</a>.</p>
  </blockquote>
  
  <p>How can I customize the <strong>subject</strong> of the E-mail, <em>(not the body. I know how to edit the variables in the body, but the same variables don't work in the subject for some reason).</em></p>
  
  <p>So I am trying to change the <strong>subject</strong> of WooCommerce order email notifications.</p>
  
  <p>The subject is customizable via WooCommerce -> Settings -> E-mails -> New Order -> Manage… and according to WooCommerce documentation, there are variables such as <code>{order_date}</code>, <code>{customer_name}</code>, etc... that can be use to get dynamic order data. </p>
  
  <p>My problem is that I would like to show the "<strong>order number</strong>" and the "<strong>order total</strong>" in the subject: </p>
  
  <ul>
  <li>If I use the format: <code>Order {order_number} - {order_date} - {dollars_spent_order}</code><br></li>
  <li>I should get: <code>Order # 123456 - July 6, 2018 - {dollars_spent_order}</code></li>
  </ul>
  
  <p>But it doesn't work. Using single or double curly-braces makes no difference.</p>
  
  <p>How can I add the order total (including tax, shipping, etc) to the E-mail subject line? </p>
  
  <p>I would like to get the following result:</p>
  
  <blockquote>
    <p>Order # 123456 - July 6, 2018 - $ 1,234.56</p>
  </blockquote>
  
  <p>I Googled this, but didn't find any code snippets that show me how to do this. </p>
  
  <p>There's also a "WooCommerce Follow-Ups" extension that adds more variables, but it's $ 99.00 and I don't need all those, just the order total. There's GOT to be a code snippet somewhere...</p>