Docly

cs_get_contact_filter_fields

Estimated reading: 1 minute

Description

With this filter, you can add more Salesforce contact fields to monitor when a contact ID is passed in the URL. By default, a contact is only found based on a contact ID. For more security it is possible to add more fields to this check.

Use

				
					add_filter('cs_get_contact_filter_fields', 'get_contact_filter_fields', 10, 1);
				
			

Parameters

None

Example

The example below adds the Contact.Email field as an extra check in the URL.

				
					function cs_get_contact_filter_fields(){
    return ['Email'];
}