Customizing email headers in WooCommerce email notifications
问题 I am trying to write a filter that changes the reply-to address for WooCommerce email, dependent on the 'billing city' the order is made for. This works for WooCommerce emails, but doesn't seem to work for WooCommerce Advanced notifications - it doesn't seem to pass the '$order' into the header information to do the IF statement. It is a long shot but any thoughts much appreciated. This is my code. function change_headers($order, $object, $headers); // Get the city $city = $order->get_billing