Created
July 11, 2017 04:36
-
-
Save samsargent/80038bec77b764b0b1adbb07ed651f9c to your computer and use it in GitHub Desktop.
Remove entries from Gravity Forms
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
add_action( 'gform_after_submission', 'site_gform_after_submission', 10, 2 ); | |
function site_gform_after_submission ( $entry, $form ) { | |
GFAPI::delete_entry( $entry['id'] ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment