Is there a way that i can change all the current users End of Term date to the same date? Ie i want all accounts to end on December 31, 2017?
I saw this code:
add_action('init', function ()
{
if(empty($_GET['s2_extend_eot'])
|| $_GET['s2_extend_eot'] !== '[secret key]')
return; // Nothing to do here.
$days_to_add = 90; // Extend by 90 days.
foreach(get_users() as $user)
{
if(($eot_time = get_user_option('s2member_auto_eot_time', $user->ID)))
update_user_option($user->ID, 's2member_auto_eot_time', $eot_time + ($days_to_add * DAY_IN_SECONDS));
}
exit('All EOT Times updated.');
});
but don’t want to just add time, i want to set it to a date.