Aller au contenu
WordPress.org

Français

  • Thèmes
  • Extensions
  • Actualités
    • Documentation
    • Forums
  • À propos
  • Compositions
    • Équipes
    • Guide de contribution
  • Obtenir WordPress
Obtenir WordPress
WordPress.org

Plugin Directory

WP Last Login

  • Envoyer une extension
  • Mes favoris
  • Se connecter
  • Envoyer une extension
  • Mes favoris
  • Se connecter

WP Last Login

Par Konstantin Obenland
Télécharger
Prévisualisation en direct
  • Détails
  • Avis
  • Installation
  • Développement
Support

Description

WP Last Login records when each user signs in and surfaces it as a sortable column on the Users screen — so you can see who’s active, identify dormant accounts, and confirm that real people are coming back.

Features

  • Sortable « Last Login » column on the Users screen, including the network admin user list on multisite.
  • Hover any date to reveal the exact login time.
  • Captures logins via the standard wp_login action, so it works with any login flow that triggers it — including the Two Factor plugin, WooCommerce, BuddyBoss, and most social-login plugins.
  • Users without a recorded login show a neutral em-dash (—) — never a misleading « never » — and still sort correctly when ordered by last login.
  • Lightweight: one user meta key, no settings page, no extra database tables.
  • Filter hooks let you customize the date format or hide the column from non-admin roles.

Crochets de filtre d‘extension

wpll_current_user_can (booléen)

Indique si la colonne doit être affichée.
Valeur par défaut : true

wpll_date_format (chaine)

La chaine de format de la date pour la sortie de la date.

Captures d’écrans

Last login column in the user table.
Last login column in the user table.

Installation

  1. Téléchargez WP Last Login.
  2. Dézipper dans le répertoire /wp-content/plugins/.
  3. Activez l’extension depuis le menu « Extensions » de WordPress.

FAQ

Why does the column show an em-dash (—) for all my users?

The plugin records a login when a user signs in after it’s been activated. WordPress doesn’t store historical login data, so existing accounts will start populating their « Last Login » the next time each user logs in. Hovering the dash shows a tooltip explaining the same.

How do I change the date format or show the time?

The date follows your site’s general date format (Settings → General); the exact time appears on hover. To override the date format, use the wpll_date_format filter:

add_filter( 'wpll_date_format', function() {
    return 'Y-m-d H:i';
} );

How do I hide the column from non-admin users?

Filter wpll_current_user_can and return a capability check. Login tracking still happens — only column visibility is gated:

add_filter( 'wpll_current_user_can', function() {
    return current_user_can( 'manage_options' );
} );

Does it work with multisite, Two Factor, WooCommerce, BuddyBoss, or social login plugins?

Yes. The plugin hooks into WordPress’s standard wp_login action, so any login method that triggers it is captured. The Two Factor plugin (which interrupts wp_login) is supported via a dedicated hook.

What happens to my data if I deactivate the plugin?

Deactivating leaves stored login timestamps intact, so reactivating preserves history. Uninstalling (deleting the plugin entirely) removes all of the plugin’s user meta.

Avis

Very useful

Joris Le Blansch 1 janvier 2026
Simple, yet very useful plugin. Using it on dozens of sites I manage.

as perfect as simple

amiens80 4 octobre 2024
this is the kind of plugin i love : just install, activated, no need setting, it runs fine! no need support. As an english person, i have no need to translate it at all. Great one ! Work fine on wp 6.6.2 and wp 6.6.1 ps : I would request another tiny feature : add the last ip of login date !

Works WP 6.5

flyingkites 3 avril 2024
Switched to this plugin as another similar plugin by YooHoo was incompatible with TwoFactor. This works with both TwoFactor and Limit Login Attempts plugins. [Anyone who says it does not work likely has a code conflict with another plugin]

Excellent + now compatible with Two Factor

DigitalGdn 27 décembre 2023
Well maintained plugin. This is the only ‘last login’ plugin I have found that supports two factor.

Doesn’t work, sadly

editorialteamnwu 30 janvier 2023
Totally useless: every user is listed as never having logged in, even the one I’m currently logged in as to view this. Two stars instead of one because at least it didn’t seem to break anything.

Is not reliable

Dirk 18 novembre 2019 4 réponses
It shows users as Login « Never » even the users have been logged in. I decided on this information to delete users! Good luck, I had an early backup of the database! Do not trust in this Plugin!
Lire les 25 avis

Contributeurs/contributrices & développeurs/développeuses

« WP Last Login » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs
  • Konstantin Obenland

“WP Last Login” a été traduit dans 11 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « WP Last Login » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal des modifications

7

  • Added compatibility with Two Factor plugin. Props @bkno.
  • Improved date display to display login time on hover.

6

  • Revamped file structure to remove unnecessary files.
  • Fixed a bug where login dates were overwritten on plugin reactivation. Props @richardbuff.

5

  • Improved uninstall routine (no longer queries all users).
  • Updated utility class.
  • Tested with WordPress 6.1.

4

  • Improved date display to account for the timezone of the site. Props @knutsp.

3

  • Fixed a bug where users who haven’t logged in disappear from user lists when ordering by last login. See https://wordpress.org/support/topic/new-users-dont-get-the-meta-field/

2

  • Version de maintenance.
  • Mise à jour du code pour respecter les normes de codage de WordPress.
  • Testé avec WordPress 5.0.

1.4.0

  • Correction d’un bogue de longue date, où le tri des comptes par leur dernière connexion ne fonctionnait pas.
  • Testé avec WordPress 4.3.

1.3.0

  • Version de maintenance.
  • Testé avec WordPress 4.0.

1.2.1

  • Annule les modifications apportées à wp_login() car le deuxième argument ne semble pas être défini tout le temps.

1.2.0

  • Les comptes peuvent désormais être triés en fonction de leur dernière connexion !
  • Updated utility class.
  • Added Danish translation. Props thomasclausen.

1.1.2

  • Fixed a bug where content of other custom columns were not displayed.

1.1.1

  • Updated utility class.

1.1.0

  • Made the display of the column filterable.
  • Widened the column a bit to accommodate for large date strings.

1.0

  • Version initiale.

Méta

  • Version 7
  • Dernière mise à jour il y a 1 mois
  • Installations actives 10 000+
  • Version de WordPress 6.5 ou plus
  • Testé jusqu’à 6.9.4
  • Version de PHP 7.4 ou plus
  • Langues

    Arabic, Danish, Dutch, English (US), Finnish, French (France), German, Italian, Norwegian (Bokmål), Spanish (Chile), Spanish (Spain), et Swedish.

    Traduisez la dans votre langue

  • Étiquettes
    adminlast loginloginuser
  • Vue avancée

Évaluations

3.7 sur 5 étoiles.
  • 13 avis à 5 étoiles 5 étoiles 13
  • 3 avis à 4 étoiles 4 étoiles 3
  • 2 avis à 3 étoiles 3 étoiles 2
  • 3 avis à 2 étoiles 2 étoiles 3
  • 4 avis à 1 étoiles 1 étoile 4

Your review

Voir tous les avis

Contributeurs

  • Konstantin Obenland

Support

Quelque chose à dire ? Besoin d’aide ?

Voir le forum de support

Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

Faire un don à cette extension

  • À propos
  • Actualités
  • Hébergement
  • Confidentialité
  • Vitrine
  • Thèmes
  • Extensions
  • Compositions
  • Apprendre
  • Support
  • Développeurs & développeuses
  • WordPress.tv ↗
  • Contribuer
  • Évènements
  • Faire un don ↗
  • « Five For the Future »
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Français

  • Visitez notre compte X (précédemment Twitter)
  • Visiter notre compte Bluesky
  • Visiter notre compte Mastodon
  • Visiter notre compte Threads
  • Consulter notre compte Facebook
  • Consulter notre compte Instagram
  • Consulter notre compte LinkedIn
  • Visiter notre compte TokTok
  • Visiter notre chaîne YouTube
  • Visiter notre compte Tumblr
Le code est une poésie.
The WordPress® trademark is the intellectual property of the WordPress Foundation.