gform_webhooks_request_method

Description

This filter allows the webhook HTTP request method to be modified.

Usage

The following would apply to all forms:

add_filter( 'gform_webhooks_request_method', 'your_function_name', 10, 4 )

To target a specific form, append the form id to the hook name. (format: gform_webhooks_request_method_FORMID)

add_filter( 'gform_webhooks_request_method_7', 'your_function_name', 10, 4 )

Parameters

Example

add_filter( 'gform_webhooks_request_method', 'set_method', 10, 4 );
function set_method( $request_method, $feed, $entry, $form ){
  return 'GET';
}

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in GF_Webhooks::process_feed() in gravityformswebhooks/class-gf-webhooks.php.