1. Home
  2. Docs
  3. Subscribe2
  4. Hooks, API & Customization
  5. s2_email_subject


this hook allows the email subject to be changed at the point of sending. This is a global filter affecting all emails sent by Subscribe2 so you will probably want to do some string checks before making changes.

function my_email_subject($subject) {
if ( strstr($subject, 'Digest') ) {
$subject = 'My Preferred Email Subject for Digest Emails';
return $subject;
add_filter('s2_email_subject', 'my_email_subject');

Was this article helpful to you? Yes No

How can we help?