billing_email

This commit is contained in:
Mike Jolley 2016-08-05 16:11:23 +01:00
parent b8bf05df11
commit f4727c0cae
6 changed files with 6 additions and 6 deletions

View File

@ -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}';

View File

@ -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}';

View File

@ -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}';

View File

@ -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}';

View File

@ -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}';

View File

@ -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}';