| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 17:46:54 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_post_notification_save/
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: MISS
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=r966cZquAk7VEwMsCw7A0Ej4qwUfwek2qMbEjbkscMzYvHPbWoOKS79YHrWSP19sOZxeoyr3xOA810q3Qz6DAftgFd%2BjHnK%2FBlL0nlf17ps9g%2BP0"}]}
cf-ray: 9b52e133799cb080-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 17:46:55 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=S6R46Fe52kCIpvS%2BFGOdpvK6fhD5kKDQvpCMYbAtAWTOQtbXOZuUcVHRUVyM73Or5KQoiGiOFGJdpAKHu6IwXwAtYJkVqwwV6sYhZz9Z9DtUDpq%2F"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b52e139f85eb080-BLR
gform_post_notification_save - Gravity Forms Documentation
gform_post_notification_save
This hook was removed in version 2.5. gform_post_update_form_meta can be used instead.
Description
Fires after the notification is successfully saved.
Usage
add_action( 'gform_post_notification_save','your_function_name', 10,3 );
Parameters
- $notification Notifications Object
The notifications object.
- $form Form Object
The current form.
- $is_new_notification bool
True if this is a new notification. False otherwise.
Example
add_action( 'gform_post_notification_save', 'notification_saved', 10, 3 );
function notification_saved( $notification, $form, $is_new_notification ) {
if ( $is_new_notification ) {
$message = 'A new notification was created for form id ' . $form['id'] . ' - ' . $form['title'];
} else {
$message = 'A new notification was updated for form id ' . $form['id'] . ' - ' . $form['title'];
}
GFCommon::send_email( '[email protected]', '[email protected]', '', '', 'New Notification', $message );
}
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms version 1.9.16.
Source Code
This filter is located in GFNotification::notification_edit_page() in notification.php.