Email Template To Include New Contents - How?
-
Hi
I'm looking to enhance the content of the email digest to include the following new data attributes
- no. of posts for the topic
- The owner of the topic
- Last time stamp of the post
- Topic summary teaser
Any advise will be much appreaciated
Thanks
Regards,
Nelson
-
What have you tried? Some of that data may not be included when the email template is parsed, so other changes will need to be made (which is a lot more work).
-
@pitaj I'm still trying to figure out what is the best method to obtain these additional data attributes and make it available to the template to consume. Do you think a custom plugin using an email hook will be able to satisfy this requirement? If not what other pointers can you suggest please?
Thanks.
-
@yapne this commit was just added and should be released with 1.8.3
It adds the
filter:email.params
hook for adding to or changing the data passed to templates. You should be about to use it either when the next core version releases, or by switching to the master branch temporarily.