I'm using Mailchimp module for user registration and at this page I found a function for registering users programatically:
mailchimp_subscribe (
$list_id,
$email,
array (
'EMAIL' => $email,
'FNAME' => $first_name, // fields in your mailchimp list
'LNAME' => $last_name,
),
false,
false
)
In my mailchimp account I have defined new field of radio buttons type (field name 'type' with options 'client' and 'expert').
I have 2 questions:
- How should be the 'type' column in
mailchimp_subscribe()
function specified? - How could be an existing user in mailchimp programatically updated?