Merge pull request #21243 from woocommerce/update/20991
Send emails for cancelled_to_* orders
This commit is contained in:
commit
0dd12e0d05
|
@ -87,6 +87,9 @@ class WC_Emails {
|
|||
'woocommerce_order_status_failed_to_processing',
|
||||
'woocommerce_order_status_failed_to_completed',
|
||||
'woocommerce_order_status_failed_to_on-hold',
|
||||
'woocommerce_order_status_cancelled_to_processing',
|
||||
'woocommerce_order_status_cancelled_to_completed',
|
||||
'woocommerce_order_status_cancelled_to_on-hold',
|
||||
'woocommerce_order_status_on-hold_to_processing',
|
||||
'woocommerce_order_status_on-hold_to_cancelled',
|
||||
'woocommerce_order_status_on-hold_to_failed',
|
||||
|
|
|
@ -42,6 +42,7 @@ if ( ! class_exists( 'WC_Email_Customer_On_Hold_Order', false ) ) :
|
|||
// Triggers for this email.
|
||||
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_cancelled_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
|
||||
// Call parent constructor.
|
||||
parent::__construct();
|
||||
|
|
|
@ -41,6 +41,7 @@ if ( ! class_exists( 'WC_Email_Customer_Processing_Order', false ) ) :
|
|||
);
|
||||
|
||||
// Triggers for this email.
|
||||
add_action( 'woocommerce_order_status_cancelled_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_failed_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_on-hold_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
|
|
|
@ -45,6 +45,9 @@ if ( ! class_exists( 'WC_Email_New_Order' ) ) :
|
|||
add_action( 'woocommerce_order_status_failed_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_failed_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_cancelled_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_cancelled_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
add_action( 'woocommerce_order_status_cancelled_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
|
||||
|
||||
// Call parent constructor.
|
||||
parent::__construct();
|
||||
|
|
Loading…
Reference in New Issue