title: WooCommerce Change Email Recipient Depending on Shipping Country
body: <p>I am trying to dynamically add certain emails to the new order recipients list based on the customers ship-to address. </p>
  
  <p>we are using PayPal advanced to process payments from within our site via n iframe. </p>
  
  <p>The problem is that the filter that switches the email uses the customer's ship-to address which I am getting from one of two places: </p>
  
  <p><code>$woocommerce-&gt;customer-&gt;shipping_country</code></p>
  
  <p><code>$woocommerce-&gt;session-&gt;customer['shipping_country'];</code></p>
  
  <p>Locally I don't have paypal advanced activated, so when test there it will work. However on the production server we are using it, and that's where the issue occurs. Those global objects are empty when the filter attempts to grab the customer's shipment order. This leads me to believe that once the PayPal order is done, the current page is redirected to the thank-you page with the proper information contained within it, however the global variables are empty when the filters are run. </p>
  
  <p>With that said, how do I fetch the customer's shipping address info when <code>woocommerce_email_recipient_new_order</code> runs? </p>