mailpoet_email_renderer_styles

mailpoet_email_renderer_styles

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('mailpoet_email_renderer_styles') is found 1 times:

  • /packages/email-editor/src/Engine/Renderer/class-renderer.php line 115
    			'body, .email_layout_wrapper'
    		);
    		$template_styles  .= '.email_layout_wrapper { box-sizing: border-box;}';
    		$template_styles  .= file_get_contents( __DIR__ . '/' . self::TEMPLATE_STYLES_FILE );
    		$template_styles   = '<style>' . wp_strip_all_tags( (string) apply_filters( 'mailpoet_email_renderer_styles', $template_styles, $post ) ) . '</style>';
    		$rendered_template = $this->inline_css_styles( $template_styles . $rendered_template );
    
    		// This is a workaround to support link :hover in some clients. Ideally we would remove the ability to set :hover
    		// however this is not possible using the color panel from Gutenberg.
    		if ( isset( $email_styles['elements']['link'][':hover']['color']['text'] ) ) {
    			$rendered_template = str_replace( '<!-- Forced Styles -->', '<style>a:hover { color: ' . esc_attr( $email_styles['elements']['link'][':hover']['color']['text'] ) . ' !important; }</style>', $rendered_template );