Created
April 20, 2023 18:20
-
-
Save matty0501/0bb449ce33e13f60e6bde72d4f9f1dee to your computer and use it in GitHub Desktop.
Delete Gravity Forms Notification Scheduler notifications after submission of a second form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'gform_after_submission_18', function( $entry ){ | |
$first_entry = GFAPI::get_entry( rgar( $entry, 3 ) ); | |
gp_notification_scheduler()->delete_notification_queue( array(), $first_entry ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment