Hooks and filters
| Hook | Type | Purpose |
|---|---|---|
wpas_gf_sf_mapped_payload | filter ( array $payload, array $entry, array $form, bool $is_update ) | Change the data before it is sent to Salesforce. |
wpas_gf_sf_oauth_scope | filter ( string $scope, $context ) | Add OAuth scopes. |
wpas_gf_sf_log_recorded | action ( int $id, array $entry ) | After a log row is written. |
wpas_gf_sf_register_providers | action ( $registry ) | Register another CRM provider. |
wpas_gf_sf_is_licensed | filter ( bool $licensed ) | Override the license result. |
wpas_gf_sf_recommended_api_url | filter ( 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.