A client needs the notification emails in plain text, I’ve tried the solutions from 2019 and it doesn’t seem to work. Is there an updated way to handle this or is that solution still the right one?
You can use the following code snippet in your theme’s functions.php file to change the notification format:
add_filter('gform_notification', 'change_notification_format_to_text', 10, 3);
function change_notification_format_to_text($notification, $form, $entry) {
if ($notification['name'] == 'Your Notification Name') {
$notification['message_format'] = 'text'; // Set format to text
}
return $notification;
}
Just replace ‘Your Notification Name’ with the name of the notification you want to modify. After adding this code, test it out, and you should see the emails coming through in plain text.
If you need any more help or run into issues, just let me know!