I am trying to find documentation on how to set up a HTML CRED notification email template that would be applied to all CRED forms.
I need to define the HTML head for responsive emails and a footer.
It is not possible.
Notifications are setup for each CRED Form separately
You can use a Hook thou, to modify the header and more:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_mail_header
Ist that what you where looking for?
Hi Beda 🙂
1.
I looked at that Hook but I'm not sure if I can use it to add code <head></head> section to it?
2.
Does the Hook always require a certain form ID or can I omit that and it will be applied to all forms?
3.
The description of the Hook says, quote; Please note that there are a lot of headers you can set (see the comprehensive message headers list here) - but there is no link to read more about it.
4.
If it is possible to set the email <head></head> section of the email with that hook, wouldn't it then be possible to create one content template "email-start" (return it raw, have function for that already setup) and one content template "email-end" and use that for all CRED emails.
5.
Or if content templates in CRED notifications is not possible can I create my own custom shortcode in functions.php so the structure would be;
My own cred_mail_header filter in functions.php
In CRED notification:
[email-start]
any text
[email-end]
Or any other suggestion?
1. The CRED hook hooks into the Head of the email, not the the Body.
So, you cannot add head tags in the hook as it already hooks in the head of the email.
2. The CRED Hook accepts ID's, if not passed it will apply to all the Forms.
3. That Link is missing, and our DOC Author is not here today (4th of July)
I will update you tomorrow with the correct link of the list
4. The Header of an Email is not created with Content Templates but with a set of message headers.
Things like Reply-To, and so on.
This cannot be added to a Content Template.
5. There is a Feature Request filed to allow Content Template similar design of the Email Body, but we will not add this for headers or footers.
Ok, understood,
I would like to forward this as an important feature request, add a +1 vote for me on the existing feature request 🙂
Can you direct me to WordPress documentation on how to create site wide email templates for wp_mail().
(I will create my custom notifications instead)
Can't find my way on the WP site. Probably searching for the wrong thing ...
hidden link
Or Plugins:
https://wordpress.org/plugins/email-templates/
For CRED; I will let Luo answer here, he is the CRED Feature Request chief.
Thanks for your patience.
Dear Tina,
It has been filed as a feature request, our developers will evaluate it. but there isn't any ETA for it.