This file contains hidden or 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 | |
/** | |
* Remove Gravity Forms entry from db directly after creation. | |
* | |
* @param object $entry The entry. | |
*/ | |
function gf_remove_form_entry( $entry ) { | |
if ( class_exists( 'GFAPI' ) ) { | |
\GFAPI::delete_entry( (int) $entry['id'] ); |