Skip to content

Commit e770711

Browse files
authored
gpnf-parent-form-context-in-child-form.php: Updated to use new gpnf_context for fetching details from parent form context/request.
1 parent ed081df commit e770711

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gp-nested-forms/gpnf-parent-form-context-in-child-form.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
*/
1313
add_filter( 'gform_pre_render', function( $form ) {
1414
if ( in_array( rgar( $_REQUEST, 'action' ), array( 'gpnf_refresh_markup', 'gpnf_edit_entry' ) ) ) {
15-
$session = new GPNF_Session( rgar( $_REQUEST, 'gpnf_parent_form_id' ) );
16-
$cookie = $session->get_cookie();
17-
$my_id = rgars( $cookie, 'request/my_id' );
15+
$my_id = rgars( $_REQUEST, 'gpnf_context/request/my_id' );
1816
}
1917
return $form;
2018
} );

0 commit comments

Comments
 (0)