Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Last Login

Plugin for WordPress that records the last time a user logged in and provides a function to display that date.

How do I display the last login of the current user?

<php echo get_last_login_current_user(); %gt;

How do I display the last login of a specific user?

<php echo get_last_login($user_id); %gt;

How do I change the date format of the last login time?

You can pass the format to either last_login_time_current_user() or last_login_time() functions.

Use standard PHP strftime format parameters. (http://php.net/manual/en/function.strftime.php)

<php echo get_last_login_current_user($format); %gt; <php echo get_last_login($user_id, $format); %gt;

How can I see if the user has a recorded timestamp? (has logged in since plugin activated)

You can call check_last_login($user_id) or check_last_login_current_user().

It will return true if a login has been recorded and false if not.

Requires: 3.0 or higher
Compatible up to: 4.0.14
Last Updated: 2 years ago
Active Installs: 80+


1 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.