Skip to content

Instantly share code, notes, and snippets.

@samsargent
Created July 11, 2017 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsargent/80038bec77b764b0b1adbb07ed651f9c to your computer and use it in GitHub Desktop.
Save samsargent/80038bec77b764b0b1adbb07ed651f9c to your computer and use it in GitHub Desktop.
Remove entries from Gravity Forms
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