WordPress.org

Ready to get started?Download WordPress

Plugin Directory

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: 3.9.1
Last Updated: 2014-5-18
Downloads: 637

Ratings

1 star
1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

0,2,0