• Great plugin, very useful – any chance that a shortcode could be added to be able to display last login date/time on any page/post please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @seekbeacon

    Sorry for the delay here, it’s been really busy.

    I wrote a small custom code snippet that you may use for the time being, and I’ll consider to add it to the plugin – https://gist.github.com/andrewlimaza/c1bf2016687aacbb18c7059de41f0ad1

    Hope this helps! Have a good one.

    Thread Starter seekbeacon

    (@seekbeacon)

    Thanks, that works fine. I suggest that it needs to be modified to show a human date rather than an epoch date.

    But that shows effectively the current login, rather than the previous login to the current one, which was what I really wanted. So in the end I managed to write some code (with the help of ChatGPT – I’m no coder really) that recorded the current login as ‘last_login’ to the WP database and then a function that pulled that down as a shortcode. So maybe in your next revision you might want to include that as an option as well, as your plugin must already record that somewhere.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode’ is closed to new replies.