From 067489b1550f53144b1f1a99326b5704fb2ea464 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 19 May 2017 10:45:26 +0100 Subject: [PATCH] Cancelled email should be send for processing orders, not pending. Fixes #15163 --- includes/emails/class-wc-email-cancelled-order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/emails/class-wc-email-cancelled-order.php b/includes/emails/class-wc-email-cancelled-order.php index e2d77034b710..d796fd14d769 100644 --- a/includes/emails/class-wc-email-cancelled-order.php +++ b/includes/emails/class-wc-email-cancelled-order.php @@ -32,7 +32,7 @@ public function __construct() { $this->template_plain = 'emails/plain/admin-cancelled-order.php'; // Triggers for this email - add_action( 'woocommerce_order_status_pending_to_cancelled_notification', array( $this, 'trigger' ), 10, 2 ); + add_action( 'woocommerce_order_status_processing_to_cancelled_notification', array( $this, 'trigger' ), 10, 2 ); add_action( 'woocommerce_order_status_on-hold_to_cancelled_notification', array( $this, 'trigger' ), 10, 2 ); // Call parent constructor