From e39db20eca4bbcf1b8b12c456393448f76ec8aa8 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Thu, 5 Mar 2020 14:02:29 -0300 Subject: [PATCH] Add woocommerce_emogrifier action (#25829) * add woocommerce_emogrifier action * fix formating issue * fix formating, again :" ; --- includes/emails/class-wc-email.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/emails/class-wc-email.php b/includes/emails/class-wc-email.php index 8e7aba18270..346b02f95f9 100644 --- a/includes/emails/class-wc-email.php +++ b/includes/emails/class-wc-email.php @@ -563,6 +563,9 @@ class WC_Email extends WC_Settings_API { if ( $this->supports_emogrifier() && class_exists( $emogrifier_class ) ) { try { $emogrifier = new $emogrifier_class( $content, $css ); + + do_action( 'woocommerce_emogrifier', $emogrifier, $this ); + $content = $emogrifier->emogrify(); } catch ( Exception $e ) { $logger = wc_get_logger();