=== MailChimp User Sync === Contributors: Ibericode, DvanKooten, iMazed, hchouhan Donate link: https://mc4wp.com/#utm_source=wp-plugin-repo&utm_medium=mailchimp-sync&utm_campaign=donate-link Tags: mailchimp,users,sync,mailchimp list,synchronize,zapier,woocommerce,mc4wp Requires at least: 3.8 Tested up to: 4.4 Stable tag: 1.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Synchronize your WordPress Users with a MailChimp list. == Description == = MailChimp User Sync = Synchronize your registered WordPress users with a MailChimp list of your choice. > To use MailChimp User Sync, please install either the free or the premium version of the [MailChimp for WordPress plugin](https://mc4wp.com/#utm_source=wp-plugin-repo&utm_medium=mailchimp-sync&utm_campaign=info). = MailChimp User Sync, at a glance.. = MailChimp User Sync will watch for changes in your WordPress user base and automatically synchronize any changes with a selected MailChimp list. - Automatically subscribe new users to your MailChimp list. - Sync all profile changes with MailChimp, even when a user's email address changes. - When a user is deleted, the associated MailChimp subscriber will be unsubscribed as well. - Synchronize all user roles or a specific one, eg all users with the "customer" role. - Synchronize all existing users - Choose whether you want to use double opt-in and send a welcome email to new subscribers. - WP CLI commands to synchronize a large amount of WordPress users at once. After activation, the plugin will listen to all changes in your WordPress users and make sure everything stays in sync with the selected MailChimp list. = Development of MailChimp User Sync = Bug reports (and Pull Requests) for [MailChimp User Sync are welcomed on GitHub](https://github.com/ibericode/mailchimp-sync). Please note that GitHub is _not_ a support forum. **More information** - [MailChimp for WordPress](https://mc4wp.com/#utm_source=wp-plugin-repo&utm_medium=mailchimp-sync&utm_campaign=more-info-link) - Other [add-ons for MailChimp for WordPress](https://mc4wp.com/add-ons/#utm_source=wp-plugin-repo&utm_medium=mailchimp-sync&utm_campaign=more-info-link) - Developers; follow or contribute to the [MailChimp User Sync plugin on GitHub](https://github.com/ibericode/mailchimp-sync) - Other [WordPress plugins](https://dannyvankooten.com/wordpress-plugins/#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=more-info-link) by [Danny van Kooten](https://dannyvankooten.com#utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=more-info-link) - [@DannyvanKooten](https://twitter.com/dannyvankooten) on Twitter == Installation == = MailChimp for WordPress = Since this plugin depends on the [MailChimp for WordPress plugin](https://wordpress.org/plugins/mailchimp-for-wp/), you will need to install that first. = Installing MailChimp User Sync = 1. Make sure [MailChimp for WordPress](https://mc4wp.com/#utm_source=wp-plugin-repo&utm_medium=mailchimp-sync&utm_campaign=info/) is installed (free or premium). 1. In your WordPress admin panel, go to *Plugins > New Plugin*, search for **MailChimp User Sync** and click "*Install now*" 1. Alternatively, download the plugin and upload the contents of `mailchimp-sync.zip` to your plugins directory, which usually is `/wp-content/plugins/`. 1. Activate the plugin 1. Set [your MailChimp API key](https://admin.mailchimp.com/account/api) in **MailChimp for WP > MailChimp Settings**. 1. Select a list to sync with in **MailChimp for WP > Sync**.] 1. (optional) Select a specific user role to synchronize. 1. (optional) synchronize your existing users. == Frequently Asked Questions == = I think I found a bug. What now? = Please report it on [GitHub issues](https://github.com/ibericode/mailchimp-sync/issues) if it's not in the list of known issues. = I have another question = Please open a topic on the [WordPress.org plugin support forums](https://wordpress.org/support/plugin/mailchimp-sync). = Send additional fields to MailChimp = Since version 1.1, you can specify which additional user fields to send to MailChimp by mapping your fields on the settings page of the plugin. If you need to send more complex data you can use the `mailchimp_sync_user_data` filter. ` add_filter( 'mailchimp_sync_user_data', function( $data, $user ) { $data['WEBSITE'] = $user->user_url; return $data; }, 10, 2 ); ` = Only synchronize users based on a custom criteria = You can set your own criteria for subscribing a user by hooking into the `mailchimp_sync_should_sync_user` filter. ` add_filter( 'mailchimp_sync_should_sync_user', function( $subscribe, $user ) { // check for custom user field if( $user->subscribe_me ) { return true; } // do not subscribe otherwise return false; }); ` = Can I run this from the command-line? = Yes, you can. The plugin registers two [WP CLI](http://wp-cli.org/) commands. ` wp mailchimp-sync all # synchronize all users wp mailchimp-sync all --role=administrator # synchronize all users with "administrator" role wp mailchimp-sync user $user_id # synchronize the user specified by the given ID ` This is especially useful for synchronising a huge amount of users. = Does this plugin synchronize data back from MailChimp? = Not by default, but you can enable this by [configuring a webhook in your MailChimp account](https://mc4wp.com/kb/configure-webhook-for-2-way-synchronizing/). == Screenshots == 1. Synchronization settings 2. Status overview == Changelog == #### 1.4 - January 26, 2016 This update requires you to update [MailChimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/) to version 3.1 first. **Fixes** - Deleted users were no longer unsubscribed in some cases. **Improvements** - Use new Queue class from MailChimp for WordPress 3.1 for improved background processing. - [Use new debug log for easier debugging](https://mc4wp.com/kb/how-to-enable-log-debugging/). - Add HTTP status codes to Webhook listener. - Miscellaneous code improvements **Changes** - WP CLI commands are now named `wp mailchimp-sync all` and `wp mailchimp-sync user ` (backwards compatible) **Additions** - WP CLI command `wp mailchimp-sync all` is now showing a progress bar #### 1.3.3 - January 14, 2016 **Fixes** - Fatal error on settings page on lower PHP versions because of missing space between ` 10.000). The process is now batched. **Improvements** - Pause & resume the forced synchronization process **Additions** - Enable & disable auto-syncing - Choose a user role to synchronize. - [WP CLI](http://wp-cli.org/) commands: `wp mailchimp-sync sync-all` and `wp mailchimp-sync sync-user $user_id`. - Filter: `mailchimp_sync_user_data` to modify user data before it's sent to MailChimp. For more detailed usage info on the introduced features, have a look at the [MailChimp User Sync FAQ](https://wordpress.org/plugins/mailchimp-sync/faq/). #### 0.1.2 - March 17, 2015 **Fixes** - Synchronising would stop if a synchronize request failed - Conflict with other plugins bundling old versions of Composer, throwing a fatal error on plugin activation - Users who were deleted from a list would cause issues, they're now re-subscribed. **Improvements** - Added some feedback to Log whether a synchronization request succeeded or not. #### 0.1.1 - February 17, 2015 **Fixes** - Force Sync got stuck on users without a valid email address. ([#10](https://github.com/ibericode/mailchimp-sync/issues/10), thanks [girandovoy](https://github.com/girandovoy)) - JSON response was malformed when any plugin threw a PHP notice **Improvements** - Progress log now auto-scrolls to bottom - Progress log now shows time - Progress log now shows more actions - Add settings link to Plugin overview - Various JavaScript improvements #### 0.1 - January 23, 2015 Initial release. == Upgrade Notice == = 1.2 = Add support for MailChimp webhooks to enable 2-way synchronizing.