WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I did my best looking for information about this subject. Your guidance is appreciated.

My goal is to perform some actions based on the number of user logins on my website per month and login days consecutivity.

How can I get a specific user Login Data (date, time... ) using wordpress functions?

If not what are the tables and fields to adress using SQL queries to get such infromation from database?

Or I should maybe create and manage my own user meta data using hooks on wp_login action?

Thank you very much.

share|improve this question
Do you want the user's last login information, or all logins ever, or something in between? If the first, there's this -- wpmu.org/daily-tip-display-the-last-login-for-wordpress-users – Pat J Jun 7 '13 at 20:59
History of user logins is not natively recorded by WordPress. – Rarst Jun 7 '13 at 21:13
check out simple login log plugin – Ravinder Kumar Jun 7 '13 at 21:54
thank you very much @Ravs for the link – whiteletters in blankpapers Jun 8 '13 at 13:52
thank you @PatJ for the link – whiteletters in blankpapers Jun 8 '13 at 13:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.