Skip to content

Instantly share code, notes, and snippets.

@nikitasinelnikov
Created June 20, 2018 15:39
Show Gist options
  • Save nikitasinelnikov/4431ca47d717afe971e9d55c6eb5859a to your computer and use it in GitHub Desktop.
Save nikitasinelnikov/4431ca47d717afe971e9d55c6eb5859a to your computer and use it in GitHub Desktop.
um_email_template_html_formatting
add_filter( 'um_email_template_html_formatting', 'my_email_template_html', 10, 2 );
function my_email_template_html( $slug, $args ) {
ob_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--[if gte mso 15]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--<![endif]-->
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Your Title</title>
<!--[if mso]>
<style type="text/css">
body { font-family: Helvetica, Arial, sans-serif }
.header_headline,
.bgcolor_headline { font-family: Georgia,"Times New Roman",Times,serif; }
</style>
<![endif]-->
</head>
<?php $head = ob_get_clean();
return $head;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment