CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 14:51:45 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=2gvqCgIc4JGn5oHJ7avimGI472TEVi2XzvsPLQc%2BUZfWjC9S%2Fsx7Ho8nbLQLTjiWaAp6Iwr1Wcj022JLsA0VmxWjA7eFNE6pmL8pRp6svBhL07nK"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98cf2d6389b47679-BLR
gform_incomplete_submissions_expiration_days - Gravity Forms
gform_incomplete_submissions_expiration_days
Description
Overrides the number of days until incomplete submissions are purged from the database.
Note: Using this filter does not change the value displayed in the save and continue confirmation and notification messages. You would need to manually update those messages in the Confirmations and Notifications areas of the Form Settings.
Usage
add_filter( 'gform_incomplete_submissions_expiration_days', 'your_function_name' );
Parameters
- $expiration_days int
The number of days until expiration. Defaults to 30.
Example
add_filter( 'gform_incomplete_submissions_expiration_days', 'change_incomplete_submissions_expiration_days' );
function change_incomplete_submissions_expiration_days( $expiration_days ) {
GFCommon::log_debug( 'gform_incomplete_submissions_expiration_days: running.' );
$expiration_days = 90;
return $expiration_days;
}
Placement
This code should be placed in the functions.php file of your active theme or within its own plugin.
Source Code
This filter is located in forms_model.php.