Lines:
1 to 39 of 39
<?php // (C) Copyright Bobbing Wide 2013 /** * Implement the actions to inform MailPoet about a new contact * * @link https://madmimi.com/developer/lists/add-membership * */ add_action( "oiksp_confirmed_contact", "oiksp_confirmed_contact_mailpoet", 10, 2 ); /* function oiksp_confirmed_contact_mailpoet() – Perform the "oiksp_confirmed_contact" action for a MailPoet mailing list */ /* function oiksp_mailpoet_default() – */ /** * From http://support.mailpoet.com/knowledgebase/plugin-form-integrate/ //in this array firstname and lastname are optional $userData=array( 'email'=>$myEmailVariable, 'firstname'=>$firstname, 'lastname'=>$lastname); $data=array( 'user'=>$userData, 'user_list'=>array('list_ids'=>array($myListId1,$myListId2)) ); $userHelper=&WYSIJA::get('user','helper'); $userHelper->addSubscriber($data); */