woocommerce_emogrifier

woocommerce_emogrifier

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_emogrifier') is found 1 times:

  • /includes/emails/class-wc-email.php line 629
    			if ( $this->supports_emogrifier() && class_exists( $css_inliner_class ) ) {
    				try {
    					$css_inliner = CssInliner::fromHtml( $content )->inlineCss( $css );
    
    					do_action( 'woocommerce_emogrifier', $css_inliner, $this );
    
    					$dom_document = $css_inliner->getDomDocument();
    
    					HtmlPruner::fromDomDocument( $dom_document )->removeElementsWithDisplayNone();
    					$content = CssToAttributeConverter::fromDomDocument( $dom_document )
    						->convertCssToVisualAttributes()