| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 04:21:26 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_entry_pre_update/
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: HIT
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=meFku%2F6wMxgdbDyjEUtADT1lZL2AbFYBu9xg8EId4GurzksAJOBa%2Bz3ABRJNe%2Fdh83nGHN84sEh3AAD53dnqSG2WKx%2FVTAq4fXEJOo6puAz8VXfW"}]}
cf-ray: 9b4607f3b8e5335a-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 04:21:27 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: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=j7zZBJWPUinXuJBgRttcCUoyShVe5CYnmy9%2FJ8Qyl%2Fe0XuW7B%2Bvt%2FJjFf8fmGtY5KC%2Bkdd5b7kFtoDyE3GMhFoCtKb0dUYnplZTzjaiESOcJLZHm"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4607f93a86335a-BLR
gform_entry_pre_update - Gravity Forms Documentation
gform_entry_pre_update
Description
Filters the entry before it is updated by an add-on or the API.
When editing entries in the admin, this filter is only used when updating payment information.
Usage
add_filter('gform_entry_pre_update', 'your_function_name', 10, 2);
Parameters
- $entry Entry Object
The current entry. - $original_entry Entry Object
The original entry, before changes.
Example
add_filter('gform_entry_pre_update', 'change_entry', 10, 2);
function change_entry($entry, $original_entry) {
if (rgar($entry, '1.3') == 'Rocketgenius' || rgar($entry, '1.6') == 'Rocketgenius') {
$entry['2'] = '[email protected]';
}
return $entry;
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Since
This filter was added in Gravity Forms version 1.8.8.
Source Code
This filter is located in GFAPI::update_entry() in includes/api.php and
GF_Forms_Model_Legacy::update_entry() in includes/legacy/forms_model_legacy.php.