Skip to content

Instantly share code, notes, and snippets.

@davidchc
Created June 6, 2016 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidchc/daba209c422c69192902b698dc764c64 to your computer and use it in GitHub Desktop.
Save davidchc/daba209c422c69192902b698dc764c64 to your computer and use it in GitHub Desktop.
<?php
$mailChimpManager = new MailChimpManager();
//Verifica se tem o mailchimp
if($mailChimpManager->has($email)){
//definino a loja
$store_id = 0;
//Informa sim ou não
$mailChimpManager->subscription(MailChimpManager::YES);
//altero
$mailChimpManager->update($store_id, $email);
$mailChimpManager->resetParam();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment