WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] Change Digest Email Subject (2 posts)

  1. Asif Mansoor
    Member
    Posted 1 year ago #

    Hello,

    Can you tell me that can we change the Email Digest subject. There is not any option to change it. So from where it will be change. Daily Digest Mail is its by default subject.

    Thanks,

    Asif

    http://wordpress.org/extend/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @Asif,

    This requires a little bit of code and is covered in the FAQs, I've copied and pasted from there for you:

    I want to change the email subject, how do I do that?
    You can change the email subject with the 's2_email_subject' filter. Something like this:

    function s2_subject_changes($subject) {
        return "This is my preferred email subject";
    }
    
    add_filter('s2_email_subject', 's2_subject_changes');

    You might also want to put a strpos() check within the function that checks for the presence of the word 'Digest' before making the change otherwise it'll affect the confirmation emails too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.