title: Trigger woocommerce order email hook from subscription payment
body: <p>I'd like to hook into the subscription plugin when a new order has been placed which I have done successfully using this action:
  <code>woocommerce_checkout_subscription_created</code>. Inside the function for that action I want to modify the email that goes out to the customer which I have tried to do like so:</p>
  
  <pre><code>&lt;?php 
      function subscription_created($subscription){   
  
      add_action('woocommerce_email_before_order_table','my_offer',20);
      $order = $subscription-&gt;order;
  
      function my_offer($order){
  
          echo "&lt;h2&gt;Your Trial Offer&lt;/h2&gt;";
          echo "&lt;p&gt;Your subscription to this product entitles you to a free blah blah blah...&lt;/p&gt;";
  
      }
  
      return $var;
  
  }
  add_action('woocommerce_checkout_subscription_created','subscription_created'); 
  ?&gt;
  </code></pre>
  
  <p>Like I said, the action for the created subscription fires (I logged the output for <code>$subscription</code> successfully). The email action isn't working. </p>
  
  <p>I'm guessing this has something to do with scope, but I'm not sure. Any thoughts would be appreciated. </p>