CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 07:51:17 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
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: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=IIJcwnDNdGZGHVcN60GDgpLo42N8CsETE25rvep4%2FCgThYu2eUSlqlOM7NG%2FYB%2Fn8kPIOlaW2JxGbjGL9gLA9Fxu9ZZs71QzYAwbbaB00fA5x9Gf"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98d502dbbb239ac4-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()