Statistics: Posted by Cristián Lávaque — June 27th, 2011, 9:44 pm
Statistics: Posted by Cristián Lávaque — June 21st, 2011, 11:15 am
Statistics: Posted by Abercorn — June 21st, 2011, 9:39 am
$s2_custom_fields = get_user_option('wp_s2member_custom_fields', $user_id);
Statistics: Posted by Cristián Lávaque — June 20th, 2011, 11:21 pm
<?php
add_filter("ws_plugin__s2member_mailchimp_merge_array", "my_filter");
function my_filter($mergeVars)
{
$my_custom_elements = array('MERGE3' => 'addr1', 'MERGE7' => 'city');
return array_merge($mergeVars, $my_custom_elements);
}
?>
Statistics: Posted by Abercorn — June 20th, 2011, 10:38 pm
<?php
add_filter("ws_plugin__s2member_mailchimp_merge_array", "my_filter");
function my_filter($merge, $vars)
{
// $merge /* Array of existing MERGE fields that s2Member passes by default. */
// $vars /* Array of defined variables in the scope/context of this Filter. */
$user_id = $vars["user_id"];
// print_r($vars); // Lots of good stuff in this array.
$user_custom = get_user_option("s2member_custom", $user_id);
$my_custom_merge_vars = array("S2_CUSTOM" => $user_custom);
return array_merge($merge, $my_custom_merge_vars);
}
?>
Statistics: Posted by Jason Caldwell — June 17th, 2011, 12:13 am
Statistics: Posted by Abercorn — June 15th, 2011, 8:21 am
Statistics: Posted by Cristián Lávaque — June 15th, 2011, 1:58 am
Statistics: Posted by Abercorn — June 15th, 2011, 1:43 am
250 List_MergeFieldRequired
'MERGE1' => '[ FIRST NAME ]',
'MERGE2' => '[ LAST NAME ]',
'OPTIN_IP' => '[ IP ADDRESS ]',
'OPTIN_TIME' => '[ DATE AND TIME ]'
Statistics: Posted by Jason Caldwell — June 15th, 2011, 12:51 am
Statistics: Posted by Abercorn — June 14th, 2011, 11:10 pm
Statistics: Posted by Abercorn — June 14th, 2011, 11:03 pm
Statistics: Posted by Cristián Lávaque — June 14th, 2011, 7:04 pm
Statistics: Posted by Abercorn — June 14th, 2011, 3:37 pm