Plugin for WordPress that records the last time a user logged in and provides a function to display that date.
Author: | Don Kukral (profile at wordpress.org) |
WordPress version required: | 3.0 |
WordPress version tested: | 4.0 |
Plugin version: | 1.2 |
Added to WordPress repository: | 22-01-2012 |
Last updated: | 10-09-2014
Warning! This plugin has not 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.
|
Rating, %: | 20 |
Rated by: | 1 |
Plugin URI: | http://yourdomain.com/ |
Total downloads: | 2 161 |
Active installs: | 10+ |
Click to start download
|
Records logins and provides a function to display the timestamp.
Screenshots
FAQ
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.
ChangeLog
1.2
Verified compatibility with WP 4.0 – fixed call to get_last_login()
1.1
Verified compatibility with WP 3.9.1
1.0
Initial Version