From f4727c0caea8dab262344fbbad48734dd3546ad4 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 5 Aug 2016 16:11:23 +0100 Subject: [PATCH] billing_email --- includes/emails/class-wc-email-customer-completed-order.php | 2 +- includes/emails/class-wc-email-customer-invoice.php | 2 +- includes/emails/class-wc-email-customer-note.php | 2 +- includes/emails/class-wc-email-customer-on-hold-order.php | 2 +- includes/emails/class-wc-email-customer-processing-order.php | 2 +- includes/emails/class-wc-email-customer-refunded-order.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/emails/class-wc-email-customer-completed-order.php b/includes/emails/class-wc-email-customer-completed-order.php index 9c6a4c6dd75..61619cf9aec 100644 --- a/includes/emails/class-wc-email-customer-completed-order.php +++ b/includes/emails/class-wc-email-customer-completed-order.php @@ -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}'; diff --git a/includes/emails/class-wc-email-customer-invoice.php b/includes/emails/class-wc-email-customer-invoice.php index e44ce558743..08a734e5fdc 100644 --- a/includes/emails/class-wc-email-customer-invoice.php +++ b/includes/emails/class-wc-email-customer-invoice.php @@ -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}'; diff --git a/includes/emails/class-wc-email-customer-note.php b/includes/emails/class-wc-email-customer-note.php index b74391d4cc2..146f35c29b9 100644 --- a/includes/emails/class-wc-email-customer-note.php +++ b/includes/emails/class-wc-email-customer-note.php @@ -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}'; diff --git a/includes/emails/class-wc-email-customer-on-hold-order.php b/includes/emails/class-wc-email-customer-on-hold-order.php index c8ce1de118c..9446f1475d2 100644 --- a/includes/emails/class-wc-email-customer-on-hold-order.php +++ b/includes/emails/class-wc-email-customer-on-hold-order.php @@ -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}'; diff --git a/includes/emails/class-wc-email-customer-processing-order.php b/includes/emails/class-wc-email-customer-processing-order.php index e116480479d..40b978454ba 100644 --- a/includes/emails/class-wc-email-customer-processing-order.php +++ b/includes/emails/class-wc-email-customer-processing-order.php @@ -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}'; diff --git a/includes/emails/class-wc-email-customer-refunded-order.php b/includes/emails/class-wc-email-customer-refunded-order.php index 81f7023300d..b16a1c1a33a 100644 --- a/includes/emails/class-wc-email-customer-refunded-order.php +++ b/includes/emails/class-wc-email-customer-refunded-order.php @@ -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}';