bookmark_bordergform_webhooks_request_url

Description

The “gform_webhooks_request_url” filter allows the webhook HTTP request url to be modified.

Usage

add_filter( 'gform_webhooks_request_url' 'your_function_name', 10, 4 );

Parameters

  • $request_url _autolink_string
    HTTP request headers
  • $feed _autolink_feed-object
    The Feed Object
  • $entry _autolink_entry-object
    The current entry.
  • $form _autolink_form-object
    The form object.

Example

add_filter( 'gform_webhooks_request_url', 'set_url', 10, 4 );
function set_url( $request_url, $feed, $entry, $form ){
	$request_url = 'https://www.rocketgenius.com';
	return $request_url;
}

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