Contact
For Developers / Hooks and filters
  1. Home
  2. Salesforce CRM Integration for Gravity Forms
  3. For Developers
  4. Hooks and filters
For Developers

Hooks and filters

1 min readUpdated Nov 24, 2026
HookTypePurpose
wpas_gf_sf_mapped_payloadfilter ( array $payload, array $entry, array $form, bool $is_update )Change the data before it is sent to Salesforce.
wpas_gf_sf_oauth_scopefilter ( string $scope, $context )Add OAuth scopes.
wpas_gf_sf_log_recordedaction ( int $id, array $entry )After a log row is written.
wpas_gf_sf_register_providersaction ( $registry )Register another CRM provider.
wpas_gf_sf_is_licensedfilter ( bool $licensed )Override the license result.
wpas_gf_sf_recommended_api_urlfilter ( string $url )Source of the Recommended Plugins list.

Example

add_filter( 'wpas_gf_sf_mapped_payload', function ( array $payload, array $entry, array $form, bool $is_update ) {
	$payload['LeadSource'] = 'Website';
	return $payload;
}, 10, 4 );

The field must exist on the Salesforce object (it is checked against the Salesforce field list).

Constants for wp-config.php

  • WPAS_CRM_ENCRYPTION_KEY: your own key material for encrypting credentials.
  • WPAS_SF_CALLBACK_URL: override the OAuth callback address.