WC_Email_Customer_Processing_Order::__construct PHP Method

__construct() public method

Constructor.
public __construct ( )
        public function __construct()
        {
            $this->id = 'customer_processing_order';
            $this->customer_email = true;
            $this->title = __('Processing order', 'woocommerce');
            $this->description = __('This is an order notification sent to customers containing order details after payment.', 'woocommerce');
            $this->heading = __('Thank you for your order', 'woocommerce');
            $this->subject = __('Your {site_title} order receipt from {order_date}', 'woocommerce');
            $this->template_html = 'emails/customer-processing-order.php';
            $this->template_plain = 'emails/plain/customer-processing-order.php';
            // Triggers for this email
            add_action('woocommerce_order_status_on-hold_to_processing_notification', array($this, 'trigger'));
            add_action('woocommerce_order_status_pending_to_processing_notification', array($this, 'trigger'));
            // Call parent constructor
            parent::__construct();
        }

Usage Example

 public function __construct()
 {
     parent::__construct();
     $this->id = 'customer_order_confirmation';
     $this->title = __('Order Confirmation', 'woocommerce-germanized-pro');
     $this->description = __('This email will confirm an order to a customer. Will not be sent automatically. Will be sent after confirming the order.', 'woocommerce-germanized-pro');
     // Remove default actions
     remove_action('woocommerce_order_status_pending_to_processing_notification', array($this, 'trigger'));
     remove_action('woocommerce_order_status_pending_to_on-hold_notification', array($this, 'trigger'));
 }
All Usage Examples Of WC_Email_Customer_Processing_Order::__construct