Statistics: Posted by Cristián Lávaque — June 20th, 2011, 9:54 pm
add_filter("ws_plugin__s2member_preserve_paid_registration_times", "__return_true");
s2member_paid_registration_times
s2member_auto_eot_time, s2member_last_payment_time
<?
$prts_arr = get_user_option("s2member_paid_registration_times", $user_id);
while( $element = each( $prts_arr ) )
{
echo $element[ 'key' ];
echo ' - ';
echo date("Y-m-d", $element[ 'value' ]);
echo '<br />';
}
?>
Statistics: Posted by adamarling — June 20th, 2011, 11:18 am
Statistics: Posted by Cristián Lávaque — June 19th, 2011, 7:45 pm
Statistics: Posted by adamarling — June 19th, 2011, 5:14 pm
add_filter("ws_plugin__s2member_preserve_paid_registration_times", "__return_true");
Statistics: Posted by Cristián Lávaque — June 17th, 2011, 5:36 pm
Statistics: Posted by adamarling — June 17th, 2011, 11:49 am
$s2_notes = get_user_option('s2member_notes', $user_id);
Statistics: Posted by Cristián Lávaque — June 16th, 2011, 4:40 pm
<?
$wp_user_id = $_GET["wp_user_id"];
$eot_del_type = $_GET["eot_del_type"];
$user_data = get_userdata($user_id);
if (get_user_option("s2member_auto_eot_time", $user_id) == NULL) { $eot = '';}
else { $eot = date("Y-m-d", get_user_option("s2member_auto_eot_time", $user_id)); }
if (get_user_option("s2member_last_payment_time", $user_id) == NULL) { $lpd = '';}
else { $lpd = date("Y-m-d", get_user_option("s2member_last_payment_time", $user_id)); }
// insert Member's previous Last Payment Time & EOT values so I can access them post-demotion
$insertEOT = mysql_query("INSERT INTO expirations (id, wp_user_id, eot, lpd, eot_del_type) VALUES ('', $wp_user_id, '$eot', '$lpd', '$eot_del_type')") or die('Query failed: ' . mysql_error());
?>
Statistics: Posted by adamarling — June 16th, 2011, 1:23 pm
Statistics: Posted by Cristián Lávaque — June 14th, 2011, 12:56 am
Statistics: Posted by adamarling — June 10th, 2011, 4:45 pm