WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. wcten
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/amr-users/

  2. anmari
    Member
    Plugin Author

    Posted 1 year ago #

    Neither of those plugins are mine. Mine is here.
    http://wpusersplugin.com/2637/recording-users-last-login/
    (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)

    eg:
    http://wpusersplugin.com/2823/formatting-and-pluggable-functions/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.