Support » Plugin: Easy Forms for Mailchimp » Contact Form 7 – Double Opt In

  • Resolved netutgamer

    (@netutgamer)


    Hi

    Just integrated this plugin and it’s working perfectly with our website and an existing ‘contact-form-7’ form on the website.

    However, everyone who is subscribing to the mailing list is getting a double opt-in email. I can’t find a way to set this preference using a contact form 7 submission form?

    Is there a way to disable this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ahh solved it…had done a search of the support forum but after posting this I clearly searched a bit harder…

    I’ll get my coat 😉

    Pasted this into Functions.php and all good!

    add_filter( 'yikes-mailchimp-checkbox-integration-body', 'set_integrations_to_single_optin', 10, 2 );
    function set_integrations_to_single_optin( $request_body, $integration_type ) {
    	$request_body['status_if_new'] = 'subscribed';
    	$request_body['status']        = 'subscribed';
    
    	return $request_body;
    }
    Plugin Author yikesinc

    (@yikesinc)

    Haha,

    I’m glad you found it so quickly!

    Take care,
    -Tracy

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.