- added filter for additional headers to email templates (e.g. DOCTYPE etc.);

This commit is contained in:
nikitozzzzzzz
2017-12-08 16:51:25 +02:00
parent 4c927e36bf
commit 129de3fec7
+4 -3
View File
@@ -107,10 +107,11 @@ if ( ! class_exists( 'Mail' ) ) {
function prepare_template( $slug, $args = array() ) {
ob_start();
if ( um_get_option( 'email_html' ) ) { ?>
if ( um_get_option( 'email_html' ) ) {
<html>
<?php do_action( 'um_before_email_template_body', $slug, $args ); ?>
echo apply_filters( 'um_email_template_html_formatting', '<html>', $slug, $args );
do_action( 'um_before_email_template_body', $slug, $args ); ?>
<body <?php echo apply_filters( 'um_email_template_body_attrs', 'style="background: #f2f2f2;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;"', $slug ) ?>>