Biggest Sale of the year

Union (5)
Countdown Timer reference
10
Days
:
10
Hours
:
05
Minutes
:
10
Seconds
Grab My Black Friday Deal

Documentation

  1. Home
  2. /
  3. Subscribe2
  4. /
  5. Hooks, API & Customi...
  6. /
  7. s2_public_subscriber_form...

s2_public_subscriber_format

This hook is available in Subscribe2 HTML only. It allows the email type of Public Subscribers to be changed. By default in Subscribe2 HTML the email type is full content HTML, in the free version of Subscribe2 is it a plain text excerpt. Using this hook the email type can be specified at site level.

function my_preferred_format() {
    // return one of the possible email types:
    // 'html_body' for a full content HTML email
    // 'html_excerpt_body' for an excerpt in HTML format
    // 'plain_body' for a full content plain text email
    // 'plain_excerpt_body' for an excerpt in plain text format
    return 'html_excerpt_body';
}
add_filter('s2_public_subscriber_format', 'my_preferred_format');
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 :)

Exit intent popup

WAIT! We're Beating Our Own Black Friday Deal!

Apply this:

00Days
00Hours
00Min
00Sec
Claim Yours & Save Over $1398