0

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 );

7uc1f3r
  • 25,125
  • 15
  • 25
  • 45

0 Answers0