diff --git a/gp-nested-forms/gpnf-set-created-by-property-on-child-entries-after-user-registration.php b/gp-nested-forms/gpnf-set-created-by-property-on-child-entries-after-user-registration.php new file mode 100644 index 000000000..a4283f162 --- /dev/null +++ b/gp-nested-forms/gpnf-set-created-by-property-on-child-entries-after-user-registration.php @@ -0,0 +1,27 @@ +get_child_entries(); + + foreach ( $child_entries as $child_entry ) { + GFAPI::update_entry_property( $child_entry['id'], 'created_by', $user_id ); + $child_entry['created_by'] = $user_id; + } +}