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. For example, to interface with Salesforce’s “leads” component, you would use the following:

add_filter('wpf_crm_object_type', 'set_object_type');

function set_object_type($object_type) {
	
	return 'Lead';

}

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.