Skip to content
Snippets Groups Projects

Devel

Merged Piotr Potrebka requested to merge devel into main
Compare and Show latest version
9 files
+ 20
4
Compare changes
  • Side-by-side
  • Inline

Files

+ 7
3
@@ -58,6 +58,10 @@ abstract class EmailAbstract implements EmailInterface {
*/
abstract public function get_id(): string;
public function get_template_name(): string {
return 'default';
}
/**
* @return string
*/
@@ -136,7 +140,7 @@ abstract class EmailAbstract implements EmailInterface {
throw new Exception( 'Empty email subject' );
}
return $this->subject;
return $this->replace_placeholders( $this->subject );
}
/**
@@ -158,7 +162,7 @@ abstract class EmailAbstract implements EmailInterface {
* @return string
*/
public function get_heading(): string {
return $this->heading;
return $this->replace_placeholders( $this->heading );
}
/**
@@ -285,7 +289,7 @@ abstract class EmailAbstract implements EmailInterface {
* @throws Exception
*/
public function get_content(): string {
return $this->content;
return $this->replace_placeholders( $this->content );
}
/**
Loading