Description
The โgform_webhooks_request_urlโ filter allows the webhook HTTP request url to be modified.
Usage
1 | 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
1 2 3 4 5 6 | add_filter( 'gform_webhooks_request_url' , 'set_url' , 10, 4 ); function set_url( $request_url , $feed , $entry , $form ){ 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.