I'm trying to apply a filter to Gravity Form's Webhook add-on and I just can't wrap my head around it. I have created a function below that from what I have read should prevent the Webhook feed from sending the form on submission but it's just not working.
I'm sure I'm missing something but I could use a second set of eyes, and some expertise. Below is a unit test to disable any web hook on form 8, and then I will expand to make active under specific condition.
// Gravity Forms Webhook Filter
add_filter( 'form_gravityformswebhooks_pre_process_feeds_8', 'disable_webhook_by_field');
function disable_webhook_by_field( $feed, $entry, $form )
{
$feed['is_active'] = false;
return $feed;
}