Support » Plugin: Subscribe2 » [Plugin: Subscribe2] digest email subject line

  • Resolved eridout


    Subscribe2 works great for me on my tiny personal blog with a half-dozen subscribers. Thank you!
    One observation is that my attempted customization of the subject line for the daily digest auto-email gets ignored. Instead of what I specify —
    auto-email [{BLOGNAME]) blog updated
    — the emails go out with this subject line:
    [BLOGNAME] Once Daily Digest Email

Viewing 3 replies - 1 through 3 (of 3 total)
  • @eridout,

    You can amend the Digest email subject line with a little bit of PHP code using a filter in Subscribe2. Crete your own little plugin like this:

    Plugin Name: My Digest Subject
    Description: Change the Subject line of the Subscribe2 Digest email.
    Version: 1.0
    Author: Me
    function my_subject($subject) {
        if (strstr($subject, "Digest") !== false( {
            return "My Custom Subject Heading";
    add_filter('s2_email_subject', 'my_subject');

    Thanks for that code.
    Unfortunately creating a plugin is new to me
    and I’m not having much luck.
    I tried by changing an existing inactive plugin,
    but the plubin install failed.
    Is there an incorrect number of close-parentheses in that code,
    particularly around line 7?
    Thanks again.


    Whoops, sorry about that! After the word false there is a ‘(‘ and it should be a ‘)’. Change that and you should be fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Subscribe2] digest email subject line’ is closed to new replies.