Replace headings placeholders
[MAILPOET-2282]
This commit is contained in:
committed by
Jack Kitterhing
parent
10d36393f6
commit
22b5981d5c
@@ -70,9 +70,10 @@ class TransactionalEmails {
|
|||||||
private function replacePlaceholders($text) {
|
private function replacePlaceholders($text) {
|
||||||
$title = $this->wp->wpSpecialcharsDecode($this->wp->getOption('blogname'), ENT_QUOTES);
|
$title = $this->wp->wpSpecialcharsDecode($this->wp->getOption('blogname'), ENT_QUOTES);
|
||||||
$address = $this->wp->wpParseUrl($this->wp->homeUrl(), PHP_URL_HOST);
|
$address = $this->wp->wpParseUrl($this->wp->homeUrl(), PHP_URL_HOST);
|
||||||
|
$order_date = date('Y-m-d');
|
||||||
return str_replace(
|
return str_replace(
|
||||||
['{site_title}','{site_address}'],
|
['{site_title}','{site_address}', '{order_date}', '{order_number}'],
|
||||||
[$title, $address],
|
[$title, $address, $order_date, '0001'],
|
||||||
$text
|
$text
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user