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

Hooks and filters

1 min readUpdated Nov 26, 2026
HookTypeUse
wpas_gf_hs_mapped_payloadfilter ( $payload, $entry, $form, $is_update )Change the properties before they are sent.
wpas_gf_hs_oauth_scopefilterChange the OAuth scopes.
wpas_gf_hs_max_file_bytesfilterChange the maximum file size.
wpas_gf_hs_file_folder_pathfilterChange the HubSpot Files folder.
wpas_gf_hs_prefill_cache_secondsfilterChange the Two-Way Sync cache time (default 600).
wpas_gf_hs_is_licensedfilter ( bool $licensed )Override the license result.
wpas_gf_hs_recommended_api_urlfilterSource of the Recommended Plugins list.
wpas_gf_hs_log_recordedactionRuns after a log row is written.
wpas_gf_hs_register_providersaction ( $registry )Register another CRM provider.

Example

add_filter( 'wpas_gf_hs_mapped_payload', function ( array $payload, array $entry, array $form, bool $is_update ) {
	$payload['hs_lead_status'] = 'NEW';
	return $payload;
}, 10, 4 );

The property must exist in HubSpot.

Constant for wp-config.php

  • WPAS_CRM_ENCRYPTION_KEY: your own key material for encrypting credentials. Define it so changing the WordPress salts does not make saved credentials unreadable.