| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 08:20:40 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_notification_format/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: EXPIRED
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=WtkAqc%2BfDFhGbLgUcHyGr%2BNyo2HBCMWMElZAN%2FQeY9YmfTZzPrkpYON3ooWukyJKcfB91sJO5BT6kvcKPwaUwkBvyrQat4yWBm%2BVj4FqX6Sf4Jcl"}]}
cf-ray: 9b47666898b1d817-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 08:20:41 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: EXPIRED
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=jw%2B0LQi0W3OPqfLxWYmLiWYqAc8iAt%2BU0BdJocMKux09G3DvK%2FzB7skekUWpJ%2BNRzsYApgVSW1yy2A5vCMHnVdW%2FINDXbaVNp31KEmNyaAZztghq"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b47666bcc18d817-BLR
gform_notification_format - Gravity Forms Documentation
gform_notification_format
This filter has been deprecated since Gravity Forms version 1.7. Use the filter gform_notication instead.
Description
Allows the format of the notification email to be changed.
Usage
The following would apply to all forms:
add_filter( 'gform_notification_format', 'your_function_name', 10, 4 );
To target a specific form, append the form id to the hook name. (format: gform_notification_format_FORMID)
add_filter( 'gform_notification_format_1', 'your_function_name', 10, 4 );
Parameters
- $message_format string
The current message format. The options are html or text.
The default is html. - $message_type string
The current message type, either a user notification or admin notification. -
$form Form Object
The current form. -
$entry Entry Object
The current entry.
Examples
add_filter( 'gform_notification_format', 'change_message_format', 10, 4 );
function change_message_format( $message_format, $message_type, $form, $entry ){
return 'text';
}
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in form_display.php in
GFCommon::prepare_user_notification()
GFCommon::prepare_admin_notification()