Feature Request – Add Filter for Email Body
-
Awesome plugin!
To make the emails more consistent with the ones going out from WooCommerce do you think you could add a filter to the email body?
That would enable me to wrap the body in WooCommerce styling:
add_filter( 'cart_abandonment_recovery_email_body', 'wrap_email_body' );
function wrap_email_body( $message ) { $heading = 'Blah blah blah'; $mailer = WC()->mailer(); $wrapped_message = $mailer->wrap_message($heading, $message); $wc_email = new WC_Email; $html_message = $wc_email->style_inline($wrapped_message); return $html_message; }
Makes for a more consistent customer experience with all emails branded up in the same way.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Feature Request – Add Filter for Email Body’ is closed to new replies.