Skip to content

Commit ee7b782

Browse files
authored
gpepee-conditional-edit.php: Migrated.
1 parent e21b59b commit ee7b782

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
<?php
22
/**
3-
* Gravity Perks // Easy Passthrough Edit Entry // Conditional Edit
4-
* https://gravitywiz.com/edit-gravity-forms-entries-on-the-front-end/
5-
*
6-
* Create a field on your form and check for a specific value on that field to determine if the passed
7-
* through entry should be edited or if a new entry should be created.
3+
* We're no longer using the experimental folder for experimental snippets. 🚧
4+
* You can now find the snippet here:
5+
* https://github.com/gravitywiz/snippet-library/blob/master/gp-easy-passthrough/gpepee-conditional-edit.php
86
*/
9-
// Update "123" to the form you are using to edit entries.
10-
add_filter( 'gpepee_edit_entry_id_123', function( $update_entry_id, $form_id ) {
11-
// Update "4" to the field ID you want to check the value of.
12-
if ( rgpost( 'input_4' ) === 'Add New' ) {
13-
$update_entry_id = false;
14-
}
15-
return $update_entry_id;
16-
}, 10, 2 );

0 commit comments

Comments
 (0)