File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 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 );
You can’t perform that action at this time.
0 commit comments