Description
Modify how long entries submitted from a nested form should be saved before being moved to the trash.
Usage
add_filter( 'gpnf_expiration_modifier', 'my_custom_function' );
Parameters
seconds int
The number of seconds until the entry should be “expired”. Defaults to one week in seconds.
Since
This filter is available since Gravity Forms Nested Forms 1.0.
Examples
Expire orphaned entries after 30 days (1 month).
add_filter( 'gpnf_expiration_modifier', function() { return MONTH_IN_SECONDS; } );
Never expire orphaned entries.
Set the expiration date to 100 years in the future effectively never expiring the entries.
add_filter( 'gpnf_expiration_modifier', function() { return 100 * YEAR_IN_SECONDS; } );