You need to have a developer’s knowledge to be able to use the actions and filters below. We are not able to provide support for custom coding!
Currently Nextend Social Login doesn’t have a Mailchimp integration, but synchronizing ( the users registered with social login ) with your MailChimp listings is possible by using both:
- a third party plugin that handles subscriptions
- and doing some custom coding to display the corresponding field that the subscription happens with.
Finding a plugin that allows the MailChimp newsletter subscriptions in third party forms:
The MC4WP: Mailchimp for WordPress plugin gives you an option to display an input field in any third party forms. And with this field they can subscribe people to your MailChimp lists. Their code snippet for displaying the input field can be found at the WordPress side bar > MailChimp for WP -> Integrations -> Custom.
Basically you need to display this extra input field in the registration flow of Nextend Social Login, by displaying custom fields before our registration.
MC4WP configurations you might need:
To make it work, you might need to Disable “Double opt-in” at WordPress side bar -> MailChimp for WP -> Integrations -> Custom
since users who register with Social Logins rarely active their account, as by default they can log in even if they haven’t confirmed their email address, yet.
Displaying the subscription field in the registration flow of Nextend Social Login:
As our Developer Documentation mentions Nextend Social Login offers ways for asking extra fields from the user before the registration with social login is completed.
The actual subscription logic is handled by MC4WP, so there is no need for the the data storing and the validation parts, as we won’t do anything with this field other than displaying it in our form.
Where should I add these custom codes?
- The custom codes could be added in a custom plugin, so you could enable/disable the custom codes in your plugins list. If you don’t have a custom plugin for custom codes already, then you could create on like it is described in the official WordPress documentations.
- Or as an alternative solution, the custom codes could be added to the functions.php file of the theme. Just be careful with the theme updates, since custom codes in the core theme files might get overridden on theme updates. To avoid such problems, it is better to add these codes into the functions.php file of a Child Theme.