Viewing 5 replies - 1 through 5 (of 5 total)
  • mattyrob

    (@mattyrob)

    @apegram,

    The subject of the digest emails is not taken from the Settings page but you can amend it with a small filter plugin as described in the FAQs under the heading ‘I want to change the email subject, how do I do that?’.

    Thread Starter apegram

    (@apegram)

    Sorry, another question

    Where do I edit that code? This code:

    function s2_subject_changes($subject) {
    return “This is my preferred email subject”;
    }

    add_filter(‘s2_email_subject’, ‘s2_subject_changes’);

    mattyrob

    (@mattyrob)

    @apegram,

    I’m not sure what you are asking me, do you want me to recommend an editor?

    Thread Starter apegram

    (@apegram)

    Sorry no, I’m asking where abouts to insert that line of code that is mentioned in the FAQ.

    It says ‘You can change the email subject with the ‘s2_email_subject’ filter.’ Just wondering what file to edit.

    mattyrob

    (@mattyrob)

    @apegram,

    Oh, okay. The filter is an API to Subscribe2 meaning you can extend it with a plugin in the same way that Subscribe2 extends WordPress. So, you need to create a mini plugin with that code and add a plugin header. More detail ( more than you’ll need) is here:
    https://codex.wordpress.org/Writing_a_Plugin

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Subject line won't change’ is closed to new replies.