gform_salesforce_post_request

Description

The gform_salesforce_post_request action fires after a request is made to the Salesforce API. This allows developers to perform custom logic after a Salesforce feed is processed.

Usage

add_action( 'gform_salesforce_post_request', 'my_custom_function'), 10, 6 );

Parameters

NameTypeDescription
$responsearray|WP_ErrorThe response from the Salesforce API.
$request_urlstringThe URL of the request made to Salesforce.
$request_argsarrayThe arguments used in the request.
$entryarrayThe entry currently being processed.
$formarrayThe form currently being processed.
$feedarrayThe feed currently being processed.

Examples

add_action( 'gform_salesforce_post_request', 'my_custom_function', 10, 6 );
function my_custom_function( $response, $request_url, $request_args, $entry, $form, $feed ) {
    // Custom logic here
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Source Code

This action is located in class-gf-salesforce.php.

Since

This action was added in Gravity Forms Salesforce Add-On 1.0.