Happy new year guys,
I’m wondering if the EOT line below can be adjusted to a minute of that day (23:59 hrs) rather than a whole day?
<?php
add_action ("ws_plugin__s2member_during_configure_user_registration_front_side", "my_fixed_EOT_time");
add_action ("ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars", "my_fixed_EOT_time");
add_action ("ws_plugin__s2member_during_paypal_notify_during_subscr_modify", "my_fixed_EOT_time");
function my_fixed_EOT_time ($vars)
{
$expire_on = strtotime(date('Y') . '-12-31');
update_user_option ($vars["user_id"], "s2member_auto_eot_time", $expire_on);
}
?>
It would just allow members full use of the site until the penultimate minute of the 31st, rather than demoting them for the whole day.
Many thanks for your continued attention,
Jon.