I am having difficulty finalizing a functionality issue utilizing s2member pro, which may be from a lack of understanding how the EOT functions.
I have a page that I wish to list out active members (those members that have NOT reached their EOT). This list is viewable to anyone visiting the site.
My problem is, I'm unsure how to filter the list based on EOT.
Currently, after grabbing my member list, I am attempting to grab their EOT date/time:
- Code: Select all
$eot_time = get_user_field('s2member_auto_eot_time', $user->ID);
However, it appears this field is empty for every user. After reading through some forum posts, I believe some said EOT is set upon cancellation of the subscription for any reason (i.e. failed payment, account deletion).
I however understood EOT to be set upon the creation of the subscription, with an auto expiration set to the number of days paid for. This way, if a successful payment is never communicated back, the account will automatically cease to function. (or privileges therein). If this is the case, shouldn't there be a value for every members EOT?
Am I attempting to utilize the proper field (s2member_auto_eot_time) to evaluate an "active" member to include them in the list?
Thanks in advance,
Steve