{"id":1789,"date":"2024-12-17T10:47:10","date_gmt":"2024-12-17T09:47:10","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/colonne-derniere-connexion\/"},"modified":"2024-12-31T18:02:38","modified_gmt":"2024-12-31T17:02:38","slug":"colonne-derniere-connexion","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/last-connection-column\/","title":{"rendered":"Last connection column"},"content":{"rendered":"<h1 class=\"wp-block-heading\">WPMasterToolKit's \"Last Login Column\" module: Track user logins with ease<\/h1>\n\n\n\n<p>When managing a WordPress site, it can be important to track user activity, particularly for management, security or maintenance reasons. The <strong>Last Login Column<\/strong> module from WPMasterToolKit has been developed to meet this need by adding a \"Last Login\" column to the list of users in the WordPress dashboard. This module is a lightweight, efficient solution that saves you from having to install a heavy or overloaded plugin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which plugin can the \"Last Login Column\" module replace?<\/h2>\n\n\n\n<p>The module <strong>Last Login Column<\/strong> can replace third-party plugins such as <em>Last Login Display<\/em>or other extensions dedicated to connection tracking. Unlike these solutions, this module is minimalist and won't burden your WordPress installation: it doesn't load any unnecessary files when the module is deactivated.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why is it useful to track user connections?<\/h2>\n\n\n\n<p>Adding a column displaying users' last login can be beneficial in many scenarios:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Active\/inactive user management<\/strong> Identify users who haven't logged in for a long time and consider measures (such as deactivating or cleaning up inactive accounts).<\/li>\n\n\n\n<li><strong>Follow-up of administrative activities<\/strong> In a collaborative environment, knowing when an administrator or editor last logged on can help coordinate tasks.<\/li>\n\n\n\n<li><strong>Security<\/strong> Check that no user accounts are being used in a suspicious or unexpected way.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How does the \"Last Login Column\" module work?<\/h2>\n\n\n\n<p>The module is based on a simple and effective operation:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Record date of connection<\/strong> Every time a user logs in, the module uses the <code data-no-auto-translation=\"\">wp_login<\/code> to save the exact timestamp of the connection in the user's metadata (via the <code data-no-auto-translation=\"\">update_user_meta<\/code>).<\/li>\n\n\n\n<li><strong>Add column to user list<\/strong> With filter <code data-no-auto-translation=\"\">manage_users_columns<\/code>the module adds a new column entitled \"Last Login\" to the administration interface.<\/li>\n\n\n\n<li><strong>Display of connection date<\/strong> Thanks to the filter <code data-no-auto-translation=\"\">manage_users_custom_column<\/code>The column displays the date and time of each user's last connection, or \"No data\" if the user has never connected.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">How do I use the \"Last Login Column\" module?<\/h2>\n\n\n\n<p>This module is easy to use:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Activate module from WPMasterToolKit<\/strong> Go to the plugin settings and activate the module <strong>Last Login Column<\/strong>.<\/li>\n\n\n\n<li><strong>View user list<\/strong> In WordPress administration, access the <strong>Users<\/strong>. A new column entitled \"Last Login\" will appear automatically.<\/li>\n\n\n\n<li><strong>Read displayed data<\/strong> For each user, you'll see the date and time of their last connection. If a user has never logged in, the message \"No data\" will be displayed.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"List of users with date of last connection.\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"298\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-28-1024x298.png\" class=\"wp-image-2900\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-28-1024x298.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-28-300x87.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-28-768x224.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-28-1536x447.png 1536w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-28.png 1823w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">The technical choices behind this module<\/h2>\n\n\n\n<p>The module <strong>Last Login Column<\/strong> is based on well-established WordPress standards:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Using native hooks<\/strong> It uses <code data-no-auto-translation=\"\">wp_login<\/code> to capture the connections and two filters (<code data-no-auto-translation=\"\">manage_users_columns<\/code> and <code data-no-auto-translation=\"\">manage_users_custom_column<\/code>) to manage the display in the user table. This guarantees perfect compatibility with WordPress, while following good development practices.<\/li>\n\n\n\n<li><strong>Optimized storage<\/strong> Last connection data are saved in user metadata using the <code data-no-auto-translation=\"\">update_user_meta<\/code>This avoids any modification to the structure of the WordPress database.<\/li>\n\n\n\n<li><strong>Conditional loading<\/strong> Like all WPMasterToolKit modules, this module's code is only loaded if the module is activated, guaranteeing optimum performance for your site.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The module <strong>Last Login Column<\/strong> is an excellent example of the WPMasterToolKit philosophy: to provide useful, lightweight, high-performance tools to optimize the management of your WordPress site. With this module, you can easily track your users' activity without having to install a third-party plugin that's often overkill for this kind of task. Simple to activate, easy to use and based on robust technical choices, it integrates perfectly into your site.<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Track user activity on your WordPress site at a glance with WPMasterToolKit's Last Login Column module. This module adds a \"Last Login\" column to the list of users on the dashboard, displaying the date and time of their last login. Lightweight, simple to use and compatible with WordPress standards, it lets you efficiently manage active and inactive users, while reinforcing your site's security.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_robots_primary_cat":"","_seopress_titles_title":"Suivez les connexions WordPress simplement","_seopress_titles_desc":"Optez pour Last Login Column : module simple et l\u00e9ger pour suivre les derni\u00e8res connexions utilisateur sur WordPress, sans alourdir votre site.","_seopress_robots_index":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-1789","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=1789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}