Resend new order notification email customization?
-
Can someone point me to a hook I can use to intercept the resent email and change its subject line and body when an update is performed (e.g., payment method is changed)? I’ve searched the hook library, but didn’t find it.
I have created custom email templates with php
get_meta
so that the body data changes in accordance to various functions I’ve added, but I need the resend email to be based upon what occurred in the order update.My use case: I have an email that goes out to a bookkeeper after an order is automagically placed when the user fills out a registration form. If the customer makes a mistake, such as selecting the wrong payment method, and the order needs correcting on the back end, the same notification email gets resent on update (or at least the subject is the same). I need to change the email subject and body to give a readily identifiable indication of the reason for this additional email, so that the bookkeeper won’t ignore it as an accidental dupe.
I can create a dedicated, custom template, if necessary, but I would rather use tags or
update_meta_data
andget_meta
with some if/then blocks to change the email based on what was updated in the order. If I use a completely different template, I will still need to know how to switch the Resend to the secondary custom template instead of the default one.I’m hoping there is some kind of
woocommerce_before_resend_notification_email
action or filter, but I couldn’t find it.
- The topic ‘Resend new order notification email customization?’ is closed to new replies.