• 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)
  • Thread Starter netutgamer

    (@netutgamer)

    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 Contributor yikesinc

    (@yikesinc)

    Haha,

    I’m glad you found it so quickly!

    Take care,
    -Tracy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact Form 7 – Double Opt In’ is closed to new replies.