Filter/Edit HTML Emails don't work in custom template

WPPizza – A Restaurant Plugin for WordPress Support General Support Filter/Edit HTML Emails don't work in custom template

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13278
    Thomas Ulbricht
    Participant

      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,
      thomas

      #13279
      Olly
      Admin & Mod

        because 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 there

        perhaps – for simplicities sake the one near the end named
        wppizza_filter_template_html_message_markup

        but it depends what you want to do, there are other filters in there too.
        possibly the ones marked with

        /**allow filtering – unused in plugin**/

        #13281
        Thomas Ulbricht
        Participant

          Hey 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!

          #13292
          Olly
          Admin & Mod

            >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 do

            other than that , i might be able to add some example here, but a busy with a number things, so will take a few days

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Filter/Edit HTML Emails don't work in custom template’ is closed to new replies.