Add woocommerce_emogrifier action (#25829)

* add woocommerce_emogrifier action

* fix formating issue

* fix formating, again :"
;
This commit is contained in:
Rodrigo Primo 2020-03-05 14:02:29 -03:00 committed by GitHub
parent b53bde72d9
commit e39db20eca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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();