WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Filter/Edit HTML Emails don't work in custom template
- AuthorPosts
- 19 October, 2015 at 1:24 pm #13278
Hello Olli,
I edited my functions.php like you described here : https://www.wp-pizza.com/topic/filteredit-header-of-html-emails/ – and it works fine ….
BUT
Just for the standard template. 🙁 If I choose a different template in “WPPizza Templates – eMails” the changes won’t show up.
So what can I do ?
Thanks a lot for your help!
Greetings,
thomas19 October, 2015 at 1:44 pm #13279because they are COMPLETELY different animals
if you want to filter things in the non-standard templates, have a look inside
inc/markup.order.html.inc.php
and use the filters in thereperhaps – for simplicities sake the one near the end named
wppizza_filter_template_html_message_markupbut it depends what you want to do, there are other filters in there too.
possibly the ones marked with/**allow filtering – unused in plugin**/
19 October, 2015 at 1:56 pm #13281Hey Olli… thanks a lot for the quick reply.
I don’t really get it ….1. Should i edit the inc/markup.order.html.inc.php if I want changes in a custom mail template?
I am not a programmer … so I don’t really have a clue what to do 🙁
Any hint for me if i want for example:– Add some text to the template right under the header
– Add some text (html with a link) at the end of the template?Sorry to ask all this … but any help is welcome. THX!
19 October, 2015 at 2:24 pm #13292>1. Should i edit the inc/markup.order.html.inc.php if I want changes in a custom mail template?
NO, NEVER EVER edit core files. the ONLY files editable are the ones in /templates/ and even those should be copied to your theme directory if you want to edit them directly.
the filters added in that file are to be used as such . i.e as filters in your theme’s functions.php (like any other wordpress filter and/or action hook)
if you do not know how to use wordpress filters , please learn about how these work.
plenty of resources on google the explain this better than i could ever doother than that , i might be able to add some example here, but a busy with a number things, so will take a few days
- AuthorPosts
- The topic ‘Filter/Edit HTML Emails don't work in custom template’ is closed to new replies.