last login date time in wordpress

To display the last login date and time in WordPress, you can follow these steps:

  1. Install and activate a plugin: Start by installing and activating a plugin called "Simple Login Log." This plugin will help you track and display the last login information for each user.

  2. Configure plugin settings: After activating the plugin, go to the "Settings" menu in your WordPress dashboard and click on "Login Log." Here, you can configure the plugin settings according to your preferences.

  3. Enable user login tracking: In the plugin settings, make sure the "Enable User Login Tracking" option is checked. This will ensure that the plugin starts recording the login information for each user.

  4. Display last login information: Once the plugin is set up and user login tracking is enabled, you can display the last login information on any page or post using a shortcode provided by the plugin. The shortcode is [simple-login-log].

  5. Edit the page or post where you want to display the last login information.

  6. Add the shortcode [simple-login-log] to the content area.
  7. Save or update the page/post.

  8. View last login information: Finally, you can visit the page or post where you added the shortcode, and it will display the last login information for each user.

The "Simple Login Log" plugin will keep track of the last login date and time for each user and display it using the shortcode on any page or post you specify. This can be useful for administrators or users who want to see their own login history.

Remember to customize the plugin settings and shortcode display according to your specific needs and preferences.