bookmark_bordergform_webhooks_request_data

Description

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

Usage

The following would apply to all forms:

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

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

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

Parameters

Example

add_filter( 'gform_webhooks_request_data', 'modify_data', 10, 4 );
function modify_data( $request_data, $feed, $entry, $form ){
  $request_data[1] = 'Tester McTesty';
  return $request_data;
}

Placement

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

Source Code

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