Stop sending “processing order” e-mail when WooCommerce order status pending payment
I have a strange problem with WooCommerce shop. When the customer orders something on my shop with Klarna or PayPal gateway, the user is getting the processing order e-mail, even though the order is not yet processed by Klarna or PayPal.
Is there any possibility to stop sending processing order e-mails when WooCommerce order status is pending payment?
I have tried this code but it doesn't change anything