Documentation

  1. Home
  2. /
  3. Docs
  4. /
  5. Subscribe2
  6. /
  7. Hooks, API & Customi...
  8. /
  9. s2_html_email s2_plain_em...

s2_html_email s2_plain_email s2_digest_email

These hooks allow the entire content of the email to be filter and amended immediately prior to sending. An example use for the ‘s2_html_email’ hook to add a stylesheet is below.

function my_s2html_filter($message) {
    if ( empty($message) ) { return; }
    list($first, $second) = explode('', $message, 2);
    $message = $first . '' . $second;
    return $message;
}
add_filter('s2_html_email', 'my_s2html_filter');

How can we help?

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We got your message

We will reply to you very soon :)