WC 3.1.1: Duplicate order notification e-mails when auto-completing orders
-
All of our products are virtual, so we implemented an auto-complete orders function
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
that changes orders paid by PayPal from “Processing” to “Complete.” Prior to WooCommerce 3.1.1, we would receive a single order notification e-mail for each order.
Beginning with WooCommerce 3.1.1, we are receiving TWO order notification emails for each order: one order notification e-mail when the order status changes to “Processing” and then another order notification e-mail when the order status changes to “Complete” (changed by our function).
Is this new behavior intentional? If so, is there a way to disable this second order notification, so that we only receive the order notification when the order status changes to “Processing?”
Thank you.
- The topic ‘WC 3.1.1: Duplicate order notification e-mails when auto-completing orders’ is closed to new replies.