Display EOT on front end excluding grace period
-
I would like to show my members when their expiry date is. I am using the following code snippet which actually returns the EOT value fine. However, it includes the grace period. Is there a function that I can use to retrieve the set grace period and subtract it before I echo the EOT?
$s2member_auto_eot_time = get_user_field ("s2member_auto_eot_time"); if ($s2member_auto_eot_time != '') { $eotdate = new DateTime("@$s2member_auto_eot_time"); echo $eotdate->format('d-M-Y'); } else { echo "never"; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Display EOT on front end excluding grace period’ is closed to new replies.