For developers who need more than the settings page offers, the Constant Contact Integration Add On has three filter hooks. Use them to send custom fields with each contact, change which tags a member gets, or change which tags the Add On is allowed to remove.
Filters
pmprocc_contact_data
Filters the contact data before it’s sent to Constant Contact to create or update the contact. The array includes email_address, create_source, list_memberships, and first_name and last_name when the user has them. Add Constant Contact custom fields as a custom_fields array, where each entry has a custom_field_id and a value.
This filter runs on every sync, including syncs after a level change and syncs after a profile update. It doesn’t run when the Add On updates a contact’s email address after an email change.
apply_filters( 'pmprocc_contact_data', array $contact_data, WP_User $user, array $levels );
Parameters
$contact_data: array; The contact data that will be sent to Constant Contact.$user: WP_User; The WordPress user being synced.$levels: array; The user’s current membership level objects. Empty if the user has no level.
Example
function my_pmprocc_contact_data( $contact_data, $user, $levels ) {
// Replace with the ID of your custom field in Constant Contact.
$company_field_id = 'your-custom-field-id';
$company = get_user_meta( $user->ID, 'company', true );
if ( ! empty( $company ) ) {
$contact_data['custom_fields'][] = array(
'custom_field_id' => $company_field_id,
'value' => $company,
);
}
return $contact_data;
}
add_filter( 'pmprocc_contact_data', 'my_pmprocc_contact_data', 10, 3 );
pmprocc_contact_tag_ids
Filters the tag IDs a contact should have, based on the tags mapped to their membership levels. Tag IDs you add here are applied even if they aren’t mapped to any level. Those tags aren’t part of the controlled set, though, so the Add On won’t remove them later. To have them removed when they no longer apply, also add them with pmprocc_controlled_tag_ids.
This filter only runs when a sync updates tags: after a level change, or after a profile update when Sync on Profile Update is set to Yes (contact data + tags).
apply_filters( 'pmprocc_contact_tag_ids', array $required_tags, WP_User $user, array $level_ids );
Parameters
$required_tags: array; Constant Contact tag IDs mapped to the member’s current levels.$user: WP_User; The WordPress user being synced.$level_ids: array; The member’s current membership level IDs.
pmprocc_controlled_tag_ids
Filters the set of tag IDs the Add On controls. By default, these are all of the tags mapped to any membership level. When Remove Tags on Level Change is checked, only tags in this set are removed from a contact when they no longer apply. Remove a tag ID from the set to make the Add On only ever add that tag.
apply_filters( 'pmprocc_controlled_tag_ids', array $controlled_tags );
Parameters
$controlled_tags: array; Constant Contact tag IDs mapped to any membership level.
Get Support From Our Team of Experts
Have a question about how to use this feature? Our Support Page outlines three ways to get support.
Our Max plans include hands-on help customizing your membership site and implementing new features. Upgrade to PMPro Max now »
Last updated on November 19, 2026