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