• Resolved colzzky

    (@colzzky)


    Hi Easy Forms Team!

    Kudos on such a wonderful plugin!

    If you don’t mind, I need your support. I created a checkbox integrated with Contact form 7. Currently when I test the contact form 7, it really does send a MailChimp subscription notice – it’s double optin.

    But what I need is for the checkbox to be in Single Optin. Is this possible that a Checkbox Integrated with Contact Form 7 be Single Optin?

    Regards,
    Colin

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hey Colin,

    This is absolutely possible but you’ll need to add a filter function to your site. Are you familiar with adding custom PHP functions to your site?

    This code will set any of our “Checkbox Integrations” (e.g. CF7, Woo, etc.) to single opt-in.

    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;
    }

    Let me know if you need any help adding it.

    Cheers,
    Kevin.

Viewing 1 replies (of 1 total)
  • The topic ‘Make Checkbox Single Optin’ is closed to new replies.