Skip to content

Filter to create custom Email Template through theme

1

function add_template in notifications.php can be changed from:

public function add_template($content)
{
// MEC Template is disabled
if(isset($this->settings[‘notif_template_disable’]) and $this->settings[‘notif_template_disable’])
return $content;

to:
public function add_template($content, $subject = ”)
{
// MEC Template is disabled
if(isset($this->settings[‘notif_template_disable’]) and $this->settings[‘notif_template_disable’])
return apply_filters(‘mec_email_template’, $content, $subject);

to allow completely custom email design through a theme.

Sahre
Tags

edgar

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis error dignissimos fugiat voluptas, asperiores quibusdam exercitationem id quam reiciendis expedita quidem nemo? Illo quod suscipit est possimus officiis repellendus eum.

Leave a Reply

Your email address will not be published.Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

Search
Categories
Subscribe
Socials