Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matty0501/0bb449ce33e13f60e6bde72d4f9f1dee to your computer and use it in GitHub Desktop.
Save matty0501/0bb449ce33e13f60e6bde72d4f9f1dee to your computer and use it in GitHub Desktop.
Delete Gravity Forms Notification Scheduler notifications after submission of a second form
<?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