amr users
[resolved] Last Visit Human Time Diff (2 posts)

  1. wcten
    Posted 3 years ago #

    I am using login-logger and log-user-access to capture the date and time of my users last visit. The display column of Last Visit shows the year and date of the last visit.

    How do I change it to human time diff (human_time_diff( $from, $to ))? Thanks.


  2. anmari
    Plugin Author

    Posted 3 years ago #

    Neither of those plugins are mine. Mine is here.
    (i'll be putting an update up soon that does a little more)

    If you are using those plugins I assume you have written an add-on to pull their data in the amr-users fields. (they store their data in other tables, not in the wp user-meta)
    In that same add-on write a formatting function to format the field. Either format as part of the extract or add a separate formatting function (run at display time)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • amr users
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.