gform_salesforce_use_connected_app

Description

The gform_salesforce_use_connected_app filter determines the authentication type to use for OAuth requests to Salesforce. By default, the add-on uses the Enterprise Connected App (ECA) authentication method. This filter allows you to switch to the Connected App authentication method instead.

Usage

add_filter( 'gform_salesforce_use_connected_app', 'my_custom_function' );

Parameters

NameTypeDescription
$use_connected_appboolWhether to use Connected App authentication. Default is false, which uses ECA authentication. Return true to use Connected App authentication.

Examples

add_filter( 'gform_salesforce_use_connected_app', '__return_true' );

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 filter is located in class-gf-salesforce.php.

Since

This filter was added in Gravity Forms Salesforce Add-On 2.0.0