Skip to content

Commit fc582bf

Browse files
authored
gpeb-restart-workflow-on-edit.php: Updated as gform_entry_created doesn't have a form-specific version. 🤯
1 parent 8115e1b commit fc582bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gp-entry-blocks/gpeb-restart-workflow-on-edit.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
* Gravity Perks // Entry Blocks // Restart Workflow on Entry Edit
44
* https://gravitywiz.com/documentation/gravity-forms-entry-blocks/
55
*/
6-
// Update "123" with your form ID.
7-
add_filter( 'gform_entry_created_123', function( $entry, $form ) {
8-
if ( class_exists( 'Gravity_Flow_API' )
6+
add_filter( 'gform_entry_created', function( $entry, $form ) {
7+
// Update "123" with your form ID.
8+
if ( $form['id'] == 123
9+
&& class_exists( 'Gravity_Flow_API' )
910
&& is_callable( 'gp_entry_blocks' )
1011
&& gp_entry_blocks()->block_edit_form->has_submitted_edited_entry()
1112
) {

0 commit comments

Comments
 (0)