I am trying to send a new order email on WooCommerce to different email addresses based on which pick up location they selected.
How can I add this email address programatically to the send email action?
$email_new_order = WC()->mailer()->get_emails()['WC_Email_New_Order'];
$email_new_order->trigger( $order_id );