• Skip to primary navigation
  • Skip to 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.

Download Gravity Forms
  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;
}

Hire the best developers for Gravity Forms

If you’re looking for good and experienced Gravity Forms developers to help you with your questions about Gravity Forms (like Change expiration date Save and continue Gravity Forms) and other add-ons, we advice you to hire experts on Codeable. Codeable is by far the most professional, dedicated and fun community to find the freelancer you need to help you with your WordPress questions.

Click here to visit Codeable
Download Gravity Forms

Gravity Forms

© 2019 - 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