From 22bd515fbd989397fc84763719bd92dd8f0ca523 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 30 Jul 2013 11:24:25 +0100 Subject: [PATCH] Customer invoice does not need toggle. Closes #3459. --- includes/emails/class-wc-email-customer-invoice.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/emails/class-wc-email-customer-invoice.php b/includes/emails/class-wc-email-customer-invoice.php index ccc24e8b98b..30ea301f24f 100644 --- a/includes/emails/class-wc-email-customer-invoice.php +++ b/includes/emails/class-wc-email-customer-invoice.php @@ -64,7 +64,7 @@ class WC_Email_Customer_Invoice extends WC_Email { $this->replace[] = $this->object->get_order_number(); } - if ( ! $this->is_enabled() || ! $this->get_recipient() ) + if ( ! $this->get_recipient() ) return; $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); @@ -134,12 +134,6 @@ class WC_Email_Customer_Invoice extends WC_Email { */ function init_form_fields() { $this->form_fields = array( - 'enabled' => array( - 'title' => __( 'Enable/Disable', 'woocommerce' ), - 'type' => 'checkbox', - 'label' => __( 'Enable this email notification', 'woocommerce' ), - 'default' => 'yes' - ), 'subject' => array( 'title' => __( 'Email subject', 'woocommerce' ), 'type' => 'text',