-
Create 1 user_meta field for each user.
-
Upon login, fire an action of ‘wp_login’ that will update the new user_meta field for the current logged in user.
-
(Optional) Before updating the user_meta field, make sure it hasn’t been updated earlier today. This will help avoiding server abuse