Optin Optin
Use code:
0 Day
00 Hour
00 Min
00 Sec
Logo

Documentation

  1. Home
  2. /
  3. Subscribe2
  4. /
  5. Hooks, API & Customi...
  6. /
  7. 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');

Still stuck? Contact

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 :)