gform_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

Example

add_filter( 'gform_webhooks_request_url', 'set_url', 10, 4 );
function set_url( $request_url, $feed, $entry, $form ){
	$request_url = 'https://www.your.domain';
	
	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.