Hi Salinjo,
First, if you’re not on the latest version – I strongly suggest you update to version 6.0.3.5.
Second, to answer your question: All of our checkbox integrations are ‘double optin’ by default. This is to help alleviate the common spam/bot entries. Each time a form is submitted by a bot/spammer they will also be added to your MailChimp list.
If you still insist on setting things to single opt-in, you can use the following filter that we’ve provided:
yikes-mailchimp-checkbox-integration-subscibe-api-request
You’ll notice there is a typo in ‘subscribe’ which we will be patching in the next release.
For now, you can use the following snippet (which should be added to your functions.php file).
function YIKES_cf7_integration_single_optin( $request_args, $integration_type ) {
if( 'contact_form_7' == $integration_type ) {
$request_args['double_optin'] = 0;
}
return $request_args;
}
add_filter( 'yikes-mailchimp-checkbox-integration-subscibe-api-request', 'YIKES_cf7_integration_single_optin' );
add_filter( 'yikes-mailchimp-checkbox-integration-subscribe-api-request', 'YIKES_cf7_integration_single_optin' );
Once added to functions.php of your active theme you’ll want to save the file. Now anytime a user submits your contact form 7 forms, they’ll be added to the mailing list.
If you’d like to alter any of the other parameters, feel free to take a look at what’s available to you:
https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/blob/2eda0fdd90aee5d79df72d2c3c0bb44b0e72fcdd/plugin_core/public/classes/checkbox-integrations.php#L144-L150
Thanks,
Evan