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

Documentation

s2_confirm_email

Introduced in version 9.1. It allows the confirmation email containing the confirmation link to subscribe or unsubscribe to be filtered. The filter allows for differentiation between subscribers and unsubscribes. It also allows for alteration or a complete change of the email template defined in Subscribe2->Settings under the Templates tab.

function change_confirm( $body, $action ) {
    // $body is the template email text from the Subscribe2->Settings page in the Templates tab
    // $action is '1' if the action is subscribing and '0' if the action is unsubscribing
    // you can append to the $body variable, use string replace functions to return an entirely different template
    return $body . 'This is some extra added text from the extension function';
}
add_action('s2_confirm_email', 'change_confirm', 10, 2);
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 :)