MAILCHIMP AND EOT
Posted: October 13th, 2011, 9:48 pm
Hello,
I want to add a EOT field to my Mailchimp list.
I' ve tried the following code but it doesn't work:
Maybe it's a problem with the date format?
I use the same code to add the users IP adress and that works fine
Can somebody help me please?
I want to add a EOT field to my Mailchimp list.
I' ve tried the following code but it doesn't work:
- Code: Select all
<?php
add_filter("ws_plugin__s2member_mailchimp_merge_array", "my_filter");
function my_filter($mergeVars)
{
$user_id = $vars["user_id"];
$user_custom = get_user_option("s2member_auto_eot_time", $user_id);
$my_custom_merge_vars = array("MERGE3" => $user_custom);
return array_merge($mergeVars, $my_custom_merge_vars);
}
?>
Maybe it's a problem with the date format?
I use the same code to add the users IP adress and that works fine
- Code: Select all
<?php
add_filter("ws_plugin__s2member_mailchimp_merge_array", "my_filter");
function my_filter($mergeVars)
{
$user_id = $vars["user_id"];
$user_custom = get_user_option("s2member_registration_ip", $user_id);
$my_custom_merge_vars = array("MERGE4" => $user_custom);
return array_merge($mergeVars, $my_custom_merge_vars);
}
Can somebody help me please?