In this quick tutorial, we will learn to add a custom column to the admin users column and show when our users were last caught visiting our website’s front end.

Each time a user browses your website, the meta in the database will be updated with the new time integer to get the exact last seen time for the logged in user.

Make sure to add the following code to your child theme’s functions file, or download as a plugin from the Github gist and upload it to your plugins.

A small preview:

wordpress users admin list last seen column preview

wordpress users admin list last seen column preview

This is a quick tutorial, feel free to share your thoughts and discuss below.

Digital Ocean

Cheap Cloud SSD Hosting

Get a VPS now starting at $5/m, fast and perfect for WordPress and PHP applications

Sign Up with $10 Credit