billing_email
This commit is contained in:
parent
b8bf05df11
commit
f4727c0cae
|
@ -55,7 +55,7 @@ class WC_Email_Customer_Completed_Order extends WC_Email {
|
|||
|
||||
if ( $order_id ) {
|
||||
$this->object = wc_get_order( $order_id );
|
||||
$this->recipient = $this->object->billing_email;
|
||||
$this->recipient = $this->object->get_billing_email();
|
||||
|
||||
$this->find['order-date'] = '{order_date}';
|
||||
$this->find['order-number'] = '{order_number}';
|
||||
|
|
|
@ -73,7 +73,7 @@ class WC_Email_Customer_Invoice extends WC_Email {
|
|||
|
||||
if ( $order ) {
|
||||
$this->object = $order;
|
||||
$this->recipient = $this->object->billing_email;
|
||||
$this->recipient = $this->object->get_billing_email();
|
||||
|
||||
$this->find['order-date'] = '{order_date}';
|
||||
$this->find['order-number'] = '{order_number}';
|
||||
|
|
|
@ -68,7 +68,7 @@ class WC_Email_Customer_Note extends WC_Email {
|
|||
extract( $args );
|
||||
|
||||
if ( $order_id && ( $this->object = wc_get_order( $order_id ) ) ) {
|
||||
$this->recipient = $this->object->billing_email;
|
||||
$this->recipient = $this->object->get_billing_email();
|
||||
$this->customer_note = $customer_note;
|
||||
|
||||
$this->find['order-date'] = '{order_date}';
|
||||
|
|
|
@ -49,7 +49,7 @@ class WC_Email_Customer_On_Hold_Order extends WC_Email {
|
|||
|
||||
if ( $order_id ) {
|
||||
$this->object = wc_get_order( $order_id );
|
||||
$this->recipient = $this->object->billing_email;
|
||||
$this->recipient = $this->object->get_billing_email();
|
||||
|
||||
$this->find['order-date'] = '{order_date}';
|
||||
$this->find['order-number'] = '{order_number}';
|
||||
|
|
|
@ -48,7 +48,7 @@ class WC_Email_Customer_Processing_Order extends WC_Email {
|
|||
|
||||
if ( $order_id ) {
|
||||
$this->object = wc_get_order( $order_id );
|
||||
$this->recipient = $this->object->billing_email;
|
||||
$this->recipient = $this->object->get_billing_email();
|
||||
|
||||
$this->find['order-date'] = '{order_date}';
|
||||
$this->find['order-number'] = '{order_number}';
|
||||
|
|
|
@ -112,7 +112,7 @@ class WC_Email_Customer_Refunded_Order extends WC_Email {
|
|||
|
||||
if ( $order_id ) {
|
||||
$this->object = wc_get_order( $order_id );
|
||||
$this->recipient = $this->object->billing_email;
|
||||
$this->recipient = $this->object->get_billing_email();
|
||||
|
||||
$this->find['order-date'] = '{order_date}';
|
||||
$this->find['order-number'] = '{order_number}';
|
||||
|
|
Loading…
Reference in New Issue