<?php
/**
* Gravity Perks // Nested Forms // Clear Session Cookie on Save & Continue
* http://gravitywiz.com/documentation/gravity-forms-nested-forms/
*/
add_action( 'gform_post_process', function( $form ) {
if( !! rgpost( 'gform_save' ) && is_callable( 'gp_nested_forms' ) ) {
$session = new GPNF_Session( $form['id'] );
$session->delete_cookie();
}
} );