Skip to content

Commit f88674b

Browse files
committed
gw-multiple-entries-list-field.php: Updated snippet to send notifications for created entries.
1 parent d15c869 commit f88674b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gravity-forms/gw-multiple-entries-list-field.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ public function create_multiple_entries( $entry ) {
9393

9494
}
9595

96-
// send Gravity Form notifications
97-
GFAPI::send_notifications( $form, $working_entry );
96+
// send Gravity Forms notifications, if enabled
97+
if ( $this->_args['send_notifications'] ) {
98+
GFAPI::send_notifications( $form, $working_entry );
99+
}
98100
}
99101

100102
return $entry;
@@ -151,4 +153,5 @@ public function is_applicable_form( $form ) {
151153
),
152154
'preserve_list_data' => true,
153155
'append_list_data' => true,
156+
'send_notifications' => false,
154157
) );

0 commit comments

Comments
 (0)