Hi – is there a chance of passing html code into $data[ ‘htmlcontent’ => $wysiwyg ];
Thanks
Would be nice if it was possible to have a filter for the template::OPTIONS
property. It’s a constant right now, but if it became a local property of the template
class, then within the constructor it would be possible to add a filter to override the default values. An example use case would be if you wanted to enable linkify across all emails by default, you could do it once on the filter, rather than defining at template level for every instance.
It might look like this
public function __construct($slug=null) {
global $wpdb;
// Reset.
$this->template = static::TEMPLATE;
// Pluck a template.
if (false === ($slug = static::ab($slug))) {
return false;
}
// And get the content.
$dbResult = $wpdb->get_results("
SELECT
<code>post_content</code> AS <code>raw</code>,
<code>post_name</code> AS <code>slug</code>,
<code>post_title</code> AS <code>title</code>
FROM <code>{$wpdb->prefix}posts</code>
WHERE
<code>post_type</code>='wh-template' AND
<code>post_status</code>='publish' AND
<code>post_name</code>='" . \esc_sql($slug) . "'
");
if (! isset($dbResult[0])) {
return false;
}
$Row = common\data::array_pop_top($dbResult);
$this->template = common\data::parse_args($Row, static::TEMPLATE);
$this->defaults = \apply_filters('wh_default_options', self::OPTIONS, $this->template['slug']); // <-- HERE
return true;
}
Also, just over a year ago you said that the plugin source would be available “in about a year”, so that it would be possible to contribute to the plugin. Any word on this, please?
]]>Hi – what is the best way to remove the site title from the email subject? Thanks
]]>Hi there,
Really like the plugin, just wanted to request that the template object could be passed to the filter wh_preprocess_template
rather than just the content and template slug? It’d sure be helpful. What’d be even more fantastic is if an ID came along with the template object too, but I could live without it.
Is the plugin open source? I’d be happy to contribute this change.
All the best,
JD
Hi..
This plugin is great. How easy it’s to manage each email with templates and data.
But I want to know how to apply templates to the default WordPress email, like reset passwords, etc.
]]>Hello,
I am facing this issue in version 2.3.4 and before, whenever I add href=”mailto:” in html template, it is replaced by href=”#”.
Please help ASAP
]]>Does it work with Elementor forms, it doesn’t look like…
]]>Hi, i’m trying to use @font-face to use a custom font in a email template but it just isn’t working.
Code i’m using is:
@font-face {
font-family: 'kgsmalltownsoutherngirl-webfont';
src: url('https://xxx/public_html/fonts/kg/kgsmalltownsoutherngirl-webfont.woff2') format('woff'),
url('https://xxx/public_html/fonts/kg/kgsmalltownsoutherngirl-webfont.woff2') format('woff2'),
url('https://xxx/public_html/fonts/kg/kgsmalltownsoutherngirl-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
H1, H2 {
font-family: 'kgsmalltownsoutherngirl-webfont';
color: #003377;
}
Should be working, not sure why it isn’t? Dose the pluging support this?
]]>Tell me how to set the encoding so that the Cyrillic alphabet is displayed normally. I tried to put utf-8 in the template itself, and $headers in the php-code did not help.
]]>I activate the plugin on a sub-site, and upon trying to access the plugin admin panel, I get the error “Invalid Post type” and the plugin deactivates itself.
]]>The plugin has made its debut on www.remarpro.com. Woo!
]]>