I have a WP site that is calling gform_after_submission in function.php so I can do some stuff first.
eg. add_action( 'gform_after_submission', 'funcSendLeadFormToEP', 10, 2 );
This works fine. I want to now selectively stop form submissions from being saved to the database in Entries table. How do I do this? If I simply “return” right away it still submits.
eg.
function funcSendLeadFormToEP( $entry, $form )
{ return }
does not work. any idea?