gform_webhooks_request_url

gform_webhooks_request_url

DescriptionUsageParametersExamplePlacementSource Code

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 string
HTTP request headers.

$feed Feed Object
The feed object.

$entry Entry Object
The current entry.

$form 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.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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註