Skip to content

s2_unsubscribe_confirmed

  • Subscribe2
  • Updated Nov 23, 2023
  • 1 min read

This allows the message displayed to a newly unsubscribing user that is displayed (after clicking the confirmation link in their email) to be customised.

function unsubscribe_change($message) {
// default message is 'You have successfully unsubscribed!'
$message .='I'm sorry to see you leave and I hope you found the emails useful.'
return $message;
}
add_filter('s2_unsubscribe_confirmed', 'unsubscribe_change');

Last updated on

Filed under Hooks, API & Customization

Still stuck?

Our support team can walk you through it.