Skip to content
Permalink
Browse files

completes #416 and #414

  • Loading branch information...
Jon007 committed May 6, 2019
1 parent d384b06 commit 16ad4c51edc8a9610d9039bc2e4953c801892b5e
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Hyyan/WPI/Emails.php
@@ -117,7 +117,7 @@ public function registerEmailStringsForTranslation()
$emails = $wc_emails->get_emails();
$this->default_settings = apply_filters(HooksInterface::EMAILS_DEFAULT_SETTINGS_FILTER, array(
'new_order_recipient' => __( $emails[ 'WC_Email_New_Order' ]->get_recipient(), 'woocommerce' ),
'new_order_recipient' => $emails[ 'WC_Email_New_Order' ]->get_recipient(),
'new_order_subject' => __( $emails[ 'WC_Email_New_Order' ]->get_default_subject(), 'woocommerce' ),
'new_order_heading' => __( $emails[ 'WC_Email_New_Order' ]->get_default_heading(), 'woocommerce' ),
'customer_processing_order_subject' => __( $emails[ 'WC_Email_Customer_Processing_Order' ]->get_default_subject(), 'woocommerce' ),
@@ -144,8 +144,10 @@ public function registerEmailStringsForTranslation()
'customer_on_hold_order_heading' => __( $emails[ 'WC_Email_Customer_On_Hold_Order' ]->get_default_heading(), 'woocommerce' ),
'cancelled_order_subject' => __( $emails[ 'WC_Email_Cancelled_Order' ]->get_default_subject(), 'woocommerce' ),
'cancelled_order_heading' => __( $emails[ 'WC_Email_Cancelled_Order' ]->get_default_heading(), 'woocommerce' ),
'cancelled_order_recipient' => $emails[ 'WC_Email_Cancelled_Order' ]->get_recipient(),
'failed_order_subject' => __( $emails[ 'WC_Email_Failed_Order' ]->get_default_subject(), 'woocommerce' ),
'failed_order_heading' => __( $emails[ 'WC_Email_Failed_Order' ]->get_default_heading(), 'woocommerce' ),
'failed_order_recipient' => $emails[ 'WC_Email_Failed_Order' ]->get_recipient(),
), $this);
// Register strings for translation and hook filters

0 comments on commit 16ad4c5

Please sign in to comment.
You can’t perform that action at this time.