Title: Single Opt-In when using Integration
Last modified: December 15, 2020

---

# Single Opt-In when using Integration

 *  Resolved [idahsto8](https://wordpress.org/support/users/idahsto8/)
 * (@idahsto8)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/single-opt-in-when-using-integration/)
 * How can I use Single Opt-In when using the Integration Setting with Contact Form
   7? I see the option if I only used Easy Forms Opt-In Forms, but not when integrating
   with a contact form 7 form. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [jpowersdev](https://wordpress.org/support/users/jpowersdev/)
 * (@jpowersdev)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/single-opt-in-when-using-integration/#post-13793920)
 * Hi [@idahsto8](https://wordpress.org/support/users/idahsto8/),
 * You can change your contact form 7 forms to single opt-in using the following
   snippet:
 *     ```
       add_filter(
       	'yikes-mailchimp-checkbox-integration-body',
       	function ( $request_body, $integration_type ) {
       		$request_body['status_if_new'] = 'subscribed';
       		$request_body['status']        = 'subscribed';
       		return $request_body;
       	},
       	10,
       	2
       );
       ```
   
 * Thanks,
    Jon
 *  Plugin Contributor [Tracy Levesque](https://wordpress.org/support/users/liljimmi/)
 * (@liljimmi)
 * 🏳️‍🌈 YIKES, Inc. Co-Owner
 * [5 years, 5 months ago](https://wordpress.org/support/topic/single-opt-in-when-using-integration/#post-13793927)
 * Hi [@idahsto8](https://wordpress.org/support/users/idahsto8/)
 * If you’re not comfortable adding that code to your functions.php file, you can
   use this plugin [https://wordpress.org/plugins/my-custom-functions/](https://wordpress.org/plugins/my-custom-functions/)
 * Let us know if you need further help.
 * Thank you!
    -Tracy
 *  Thread Starter [idahsto8](https://wordpress.org/support/users/idahsto8/)
 * (@idahsto8)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/single-opt-in-when-using-integration/#post-13794252)
 * Thank you! I’d probably prefer to edit functions.php myself, if you can provide
   a few additional details? Where within the file do I need to place code… or can
   it go anywhere in there? thanks!
 *  Plugin Contributor [Tracy Levesque](https://wordpress.org/support/users/liljimmi/)
 * (@liljimmi)
 * 🏳️‍🌈 YIKES, Inc. Co-Owner
 * [5 years, 5 months ago](https://wordpress.org/support/topic/single-opt-in-when-using-integration/#post-13797863)
 * Hi [@idahsto8](https://wordpress.org/support/users/idahsto8/)
 * You can place it at the very end of the file, unless there is a closing PHP tag
   at the end, then it needs to go above that.
 * Thank you.
    -Tracy
 *  Thread Starter [idahsto8](https://wordpress.org/support/users/idahsto8/)
 * (@idahsto8)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/single-opt-in-when-using-integration/#post-13798692)
 * Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Single Opt-In when using Integration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yikes-inc-easy-mailchimp-extender_a1c7e5.
   svg)
 * [Easy Forms for Mailchimp](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/)
 * [Active Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/reviews/)

## Tags

 * [single opt in](https://wordpress.org/support/topic-tag/single-opt-in/)

 * 5 replies
 * 3 participants
 * Last reply from: [idahsto8](https://wordpress.org/support/users/idahsto8/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/single-opt-in-when-using-integration/#post-13798692)
 * Status: resolved