// Customize FluentCRM unsubscribe page without reason selection
add_filter('fluent_crm/unsubscribe_texts', function($messages) {
$messages['heading_description'] = 'You’ve been unsubscribed from our emails.';
$messages['confirm_text'] = 'Click the button below to confirm your unsubscription.';
$messages['submit_button_text'] = 'Unsubscribe';
$messages['heading'] = 'Unsubscribe';
return $messages;
});
// Remove reason selection from the unsubscribe page
add_filter('fluent_crm/unsubscribe_reasons', '__return_empty_array');
// Customize the success message after unsubscription
add_filter('fluent_crm/unsub_response_message', function($message) {
return 'You have successfully unsubscribed. We’re sorry to see you go.';
});
// Optional: Add a custom message before the unsubscribe form
add_action('fluent_crm/before_unsubscribe_form', function($subscriber, $campaignEmail) {
echo '
If you change your mind, you can always resubscribe later.
'; }, 10, 2); // Optional: Add a thank you message after the unsubscribe form add_action('fluent_crm/after_unsubscribe_content', function($subscriber, $campaignEmail) { echo 'Thank you for your time with us.
'; }, 10, 2);


