wpf_crm_object_type

Overview

By default WP Fusion interfaces with Contacts in all of our supported CRM integrations. Some platforms like Salesforce, Ontraport, and Zoho support custom object types in addition to contacts (like Leads).

You can override WP Fusion to interface with a different object type via a filter in your functions.php file.

Changing the object type will also reset the fields available for syncing. After changing the object type, please reload the available fields by going to Settings » WP Fusion » Setup and clicking the green Resynchronize button.

Salesforce

For example, to interface with Salesforce’s “leads” component, you would use the following:

add_filter( 'wpf_crm_object_type', function( $object_type ) {
	return 'Lead';
});

Zoho

To interface with Zoho’s “leads” component, you would use the following:

add_filter( 'wpf_crm_object_type', function( $object_type ) {
	return 'Leads';
});

Ontraport

Ontraport uses numeric IDs for object types. The default type is 0 for contacts. To override that, pass the ID of your custom object into the filter.

add_filter( 'wpf_crm_object_type', function( $object_type ) {
	return 8;
});

Was this helpful?