• I don’t want to add every user to mailchimp.
    Only user who decide to get the newsletter, should be added to mailchimp (to save money).

    Is there a way to only sync with mailchimp if a specific checkbox in the user settings is activated?

    If not, can anyone tell me where and how exactly I could add such an if condition?

    Thank you.

    https://wordpress.org/plugins/autochimp/

Viewing 1 replies (of 1 total)
  • Thread Starter mattmatt88

    (@mattmatt88)

    I think I’ve figured it out.
    I’ve added the following to line 556 in autochimp.php:

    if (($mode=="1" && $user_info->accountactivated!="accountactivated")) { return; }

    So, a user wouldn’t be added as long as the checkbox isn’t checked.

    Would be better if a user also gets deleted from mailchimp if the checkbox isn’t checked anymore. Any ideas?

Viewing 1 replies (of 1 total)
  • The topic ‘Only add user to mailchimp, if a checkbox is activated’ is closed to new replies.