• Skip to primary navigation
  • Skip to main content

GravityWP

The best information about Gravity Forms, GravityView, Gravity Flow and other addons

  • Tutorials
  • Forms
  • Views
  • Workflow
  • PDF
  • Perks
  • Show Search
Hide Search
Jurriaan Koops

Change expiration date Save and continue Gravity Forms

Jurriaan Koops · Mar 30, 2018 ·

Do you want to change the expiration date for Gravity Forms ‘Save and continue’ functionality (standard 30 days)? This is easily done by adding filter in the functions.php file in your theme folder.

Buy Gravity Forms (affiliate link)
  1. How to change the expiration date in Gravity Forms Save and continue?

How to change the expiration date in Gravity Forms Save and continue?

Just add the code below to the functions.php file in your theme folder.  By changing the $expiration_days value you can set the number of days the form will be saved.
add_filter( 'gform_incomplete_submissions_expiration_days', 'gwp_days', 1, 10 );
function gwp_days( $expiration_days ) {
    // change this value
    $expiration_days = 365;
    return $expiration_days;
}
Buy Gravity Forms (affiliate link)

Gravity Forms

© 2021 - This website is made possible by the wonderful services of
WordPress, GravityForms, GravityView, GravityWiz, Genesis Framework & WP Engine

  • About
  • Hire GF developers
  • Charts
  • Cheat Sheet