Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tylerdigital/35a3bf0e314a72c0a9f4dcd0dc0c3d32 to your computer and use it in GitHub Desktop.
Save tylerdigital/35a3bf0e314a72c0a9f4dcd0dc0c3d32 to your computer and use it in GitHub Desktop.
add_filter( 'ssa_mailchimp_subscriber_data', 'ssa_set_custom_mailchimp_merge_fields', 10, 3 );
function ssa_set_custom_mailchimp_merge_fields( $subscriber_data, $customer_information, $appointment_type_id ) {
$subscriber_data['merge_fields']['SITUATION'] = $customer_information['Current Situation'];
return $subscriber_data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment