Skip to content

Commit 9f296db

Browse files
authored
Update gpns-trigger-function-by-scheduled-notification.php
Fixed PHPCS issues.
1 parent f08ccad commit 9f296db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gp-notification-scheduler/gpns-trigger-function-by-scheduled-notification.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Gravity Perks // Notification Scheduler // Trigger Function on Send
44
* https://gravitywiz.com/documentation/gravity-forms-notification-scheduler/
55
*
6-
* This snippet demonstrates how to trigger a custom function using a scheduled notification. The notification
7-
* is suppressed by default but can also be triggered by removing the specified line below. The trigger
6+
* This snippet demonstrates how to trigger a custom function using a scheduled notification. The notification
7+
* is suppressed by default but can also be triggered by removing the specified line below. The trigger
88
* notification is identified by its subject line.
99
*/
1010
add_filter( 'gform_pre_send_email', function( $email, $message_format, $notification, $entry ) {
@@ -14,15 +14,15 @@
1414
return $email;
1515
}
1616

17-
// Update "Trigger: My Custom Function" to your trigger notification's subject line.
17+
// Update "Trigger: My Custom Function" to your trigger notification's subject line.
1818
if ( $notification['subject'] !== 'Trigger: My Custom Function' ) {
1919
return $email;
2020
}
2121

22-
// Delete this line if you want the notification to still be sent.
22+
// Delete this line if you want the notification to still be sent.
2323
$email['abort_email'] = true;
2424

25-
// Update this to your own custom function name.
25+
// Update this to your own custom function name.
2626
my_custom_function();
2727

2828
return $email;

0 commit comments

Comments
 (0)