Adding Date to Custom Subject Line
-
I’m using the code below to add a custom subject line to my weekly digests (I got it from another Subscribe2 support thread) and it’s working fine. But I’d like to be able to add the date I send the digest to the subject line as well. I’d prefer not to have to do it manually for each digest I send out. Does anyone know if this is possible?
<?php
/*
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’);
?>
- The topic ‘Adding Date to Custom Subject Line’ is closed to new replies.