• Resolved DavidCarr

    (@davidcarr)


    I’d like to display a list of active site members on a WordPress site controlled by the S2Member Pro plugin. In a nutshell, I want to display only members whose (end of time) EOT date is less than today’s date.

    Is there a way to include this logic?

    Many thanks!

    https://wordpress.org/plugins/amr-users/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author anmari

    (@anmari)

    Hi David,

    you’d have to write a custom function to filter out users with eot dates less than todays date.

    http://wpusersplugin.com/2940/filters/

    the ‘amr_get_users’ filter.

    Please note do NOT attempt this if you do not know about wordpress filters and have a reasonable understanding of php. I don’t teach php via support forum.

    If it’s for own use, you may be better off sorting by EOT date, maybe excluding what you can by some status field and then scrolling till you find the cutoff. If you already selecting ‘active’ only, then what’s left may be only a few that active but past EOT?

    Alternatively in about 3 weeks time, I’d be able to look at a custom date related add-on, like :
    http://wpusersplugin.com/related-plugins/amr-user-plugin-add-ons/amr-users-plus-count-by-dates/ but different!

    Thread Starter DavidCarr

    (@davidcarr)

    I’d definitely be interested in the add-on. I know enough about writing filters to be dangerous, but I also have a test environment where I can play. I will keep an eye out for the add-on. Thank you for such a quick response to my question!

    why not demote expired s2 members to a lower role which is not listed by amr ?

    just change s2 EOT behavior to demote expired members to subscriber or somesuch, and tell AMR to ignore subscriber role on your list

    sam

    Thread Starter DavidCarr

    (@davidcarr)

    Sam, I ended up doing something similar. I’m using AMR to display members that have certain roles on the system, all of which are controlled by S2. This works great.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Active S2Member Users / Evaluate Date’ is closed to new replies.