Skip to content
Advertisement

Tag: woocommerce

Send failed order email notification to the customer in Woocommerce

I’m using the following code in my theme functions.php file to send order failed email only to customer instead of admin: And it works… But I’m getting the following error in php log file: How can I solve this error? Answer You need to replace billing_email by the WC_Order method get_billing_email() like: Code goes in function.php file of your active

Advertisement