bookmark_bordergform_webhooks_post_request

Description

The “gform_webhooks_post_request” action fires after a Webhooks request has been executed and allows further actions to be performed.

Usage

The following would apply to all forms:

add_action( 'gform_webhooks_post_request' 'your_function_name', 10, 4 );

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

add_action( 'gform_webhooks_post_request_78' 'your_function_name', 10, 4 );

To target a specific form’s feed, append the form id and feed id to the hook name. (format: gform_webhooks_post_request_FORMID_FEEDID)

add_action( 'gform_webhooks_post_request_78_12' 'your_function_name', 10, 4 );

Parameters

  • $response WP_Error or _autolink_array
    The response from the request execution. The response will be the WP_Error object if the execution fails, otherwise an array.
  • $feed _autolink_feed-object
    The Feed Object
  • $entry _autolink_entry-object
    The current entry.
  • $form _autolink_form-object
    The form object.

Example

add_action( 'gform_webhooks_post_request', 'post_request', 10, 4 );
function post_request( $response, $feed, $entry, $form ){
  //do something grand here
}

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