Not able to send Emails programmatically
-
Hi,
I want to send Emails using your Email Template programmatically but I got an error.
When I try to call
$wc_emails['WC_Customer_Pending_Payment']->trigger( $order->get_id() );I got an error sayingUncaught Error: Call to undefined method WC_Customer_Pending_Payment::trigger().While analyzing further I got 2 issues.
1. In ‘/emails/class-wc-customer-pending-payment.php’,function trigger()is not a method of ClassWC_Customer_Pending_Paymentand its not “public”.
2. I seeecho $this->recipient; exit;in the above function.Can you able to fix this immediately?
Thanks
The topic ‘Not able to send Emails programmatically’ is closed to new replies.