Remove dupliate email actions
Remove duplicate 'woocommerce_order_status_pending_to_processing' and 'woocommerce_order_status_pending_to_on-hold' email actions
This commit is contained in:
parent
35887b9430
commit
d01568b3bd
|
@ -520,7 +520,7 @@ class Woocommerce {
|
||||||
add_action( 'admin_footer', array( $this, 'output_inline_js' ), 25 );
|
add_action( 'admin_footer', array( $this, 'output_inline_js' ), 25 );
|
||||||
|
|
||||||
// Email Actions
|
// Email Actions
|
||||||
$email_actions = array( 'woocommerce_low_stock', 'woocommerce_no_stock', 'woocommerce_product_on_backorder', 'woocommerce_order_status_pending_to_processing', 'woocommerce_order_status_pending_to_completed', 'woocommerce_order_status_pending_to_on-hold', 'woocommerce_order_status_failed_to_processing', 'woocommerce_order_status_failed_to_completed', 'woocommerce_order_status_pending_to_processing', 'woocommerce_order_status_pending_to_on-hold', 'woocommerce_order_status_completed', 'woocommerce_new_customer_note' );
|
$email_actions = array( 'woocommerce_low_stock', 'woocommerce_no_stock', 'woocommerce_product_on_backorder', 'woocommerce_order_status_pending_to_processing', 'woocommerce_order_status_pending_to_completed', 'woocommerce_order_status_pending_to_on-hold', 'woocommerce_order_status_failed_to_processing', 'woocommerce_order_status_failed_to_completed', 'woocommerce_order_status_completed', 'woocommerce_new_customer_note' );
|
||||||
|
|
||||||
foreach ( $email_actions as $action )
|
foreach ( $email_actions as $action )
|
||||||
add_action( $action, array( $this, 'send_transactional_email') );
|
add_action( $action, array( $this, 'send_transactional_email') );
|
||||||
|
|
Loading…
Reference in New Issue