• Resolved swb1

    (@swb1)


    I would really like a WP Dashboard users column showing when users last logged in. Since we use Solid 2FA which bypasses wp_login(), I can’t get that info from other plugins. I’m not too bad at PHP. Is there a way to extract user last login from Solid Security’s logs?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @swb1,

    Not sure whether this info is usefull for what you want to do, but perhaps it adds a piece to your puzzle.

    $user_id = get_current_user_id();
    echo ITSEC_Lib_User_Activity::get_instance()->get_last_seen( $user_id );

    +++ To prevent any confusion, I’m not SolidWP +++

    • This reply was modified 3 weeks, 1 day ago by nlpro.
    Thread Starter swb1

    (@swb1)

    This gives me a good starting clue and is certainly enough for an experiment. Thank you.

    Hi @swb1,

    Good to hear my input was usefull to you. If you require no further assistance, please mark this topic as ‘Resolved’.

    +++ To prevent any confusion, I’m not SolidWP +++

    Thread Starter swb1

    (@swb1)

    Works. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.