Email Template To Include New Contents - How?
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
@PitaJ are you able to assist here? Thanks
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?
It adds the
filter:email.paramshook 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.
@pitaj thank you. Will give it a try.