{"id":81158,"date":"2018-02-05T20:03:50","date_gmt":"2018-02-05T20:03:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/admin-users-logged-in\/"},"modified":"2026-01-10T09:18:13","modified_gmt":"2026-01-10T09:18:13","slug":"admin-users-logged-in","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/admin-users-logged-in\/","author":6559433,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.6","stable_tag":"1.0.6","tested":"6.9.4","requires":"4.4","requires_php":"7.0","requires_plugins":null,"header_name":"Admin Users Logged In","header_author":"Marcel Pol","header_description":"Dashboard widget that shows admin users and when they were last logged in.","assets_banners_color":"","last_updated":"2026-01-10 09:18:13","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/admin-users-logged-in\/","header_author_uri":"https:\/\/timelord.nl","rating":5,"author_block_rating":0,"active_installs":100,"downloads":3889,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"mpol","date":"2018-02-05 20:04:10"},"1.0.2":{"tag":"1.0.2","author":"mpol","date":"2021-03-03 11:44:13"},"1.0.3":{"tag":"1.0.3","author":"mpol","date":"2021-05-31 11:51:52"},"1.0.4":{"tag":"1.0.4","author":"mpol","date":"2022-01-23 16:09:28"},"1.0.5":{"tag":"1.0.5","author":"mpol","date":"2024-07-22 09:40:51"},"1.0.6":{"tag":"1.0.6","author":"mpol","date":"2026-01-10 09:18:13"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1818906,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1818906,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":1816498,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Dashboard widget with admin users and their last login."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[152771,2713,60860],"plugin_category":[],"plugin_contributors":[78711],"plugin_business_model":[],"class_list":["post-81158","plugin","type-plugin","status-publish","hentry","plugin_tags-admin-users","plugin_tags-dashboard-widget","plugin_tags-last-login","plugin_contributors-mpol","plugin_committers-mpol"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/admin-users-logged-in\/assets\/icon-128x128.png?rev=1818906","icon_2x":"https:\/\/ps.w.org\/admin-users-logged-in\/assets\/icon-256x256.png?rev=1818906","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/admin-users-logged-in\/assets\/screenshot-1.jpg?rev=1816498","caption":"Dashboard widget with admin users and their last login."}],"raw_content":"<!--section=description-->\n<p>Dashboard widget that shows admin users and when they were last logged in.<\/p>\n\n<h4>Compatibility<\/h4>\n\n<p>This plugin is compatible with <a href=\"https:\/\/www.classicpress.net\">ClassicPress<\/a>.<\/p>\n\n<h4>Contributions<\/h4>\n\n<p>This plugin is also available in\n<a href=\"https:\/\/codeberg.org\/cyclotouriste\/admin-users-logged-in\">Codeberg<\/a>.<\/p>\n\n<!--section=installation-->\n<h4>Installation<\/h4>\n\n<ul>\n<li>Install the plugin through the admin page \"Plugins\".<\/li>\n<li>Alternatively, unpack and upload the contents of the zipfile to your '\/wp-content\/plugins\/' directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Visit the Dashboard. That's it.<\/li>\n<\/ul>\n\n<h4>PHP filters for Custom Roles<\/h4>\n\n<p>This first filter is for showing an additional role in the widget.<\/p>\n\n<pre><code>&lt;?php\n    function my_auli_get_role__in( $role__in ) {\n        $role__in[] = 'Subscriber';\n        return $role__in;\n    }\n    add_filter( 'auli_get_role__in', 'my_auli_get_role__in' );\n?&gt;\n<\/code><\/pre>\n\n<p>This second filter is for who gets to see the widget.<\/p>\n\n<pre><code>&lt;?php\n    function my_auli_show_for_role__in( $role__in ) {\n        $role__in[] = 'Customrole';\n        return $role__in;\n    }\n    add_filter( 'auli_show_for_role__in', 'my_auli_show_for_role__in' );\n?&gt;\n<\/code><\/pre>\n\n<!--section=changelog-->\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>2024-10-02<\/li>\n<li>Loading plugin translations should be delayed until init action (in this case admin_init).<\/li>\n<li>Use <strong>DIR<\/strong> for loading translations instead of dirname(<strong>FILE<\/strong>).<\/li>\n<li>Better check for direct access of files.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>2022-05-11<\/li>\n<li>Add filter 'auli_get_role__in' for showing users with these roles.<\/li>\n<li>Remove check for shown users based on capability.<\/li>\n<li>Add filter 'auli_show_for_role__in' for allowing users to see this widget.<\/li>\n<li>No need to check if function 'current_user_can()' exists.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>2021-06-01<\/li>\n<li>Support translations.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>2021-05-31<\/li>\n<li>Small updates from wpcs.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>2018-02-06<\/li>\n<li>Fix the location of closing  (outside the loop).<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>2018-02-03<\/li>\n<li>Only show the widget on capability 'edit_posts'.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>2018-01-18<\/li>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Dashboard widget that shows admin users and when they were last logged in.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/81158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=81158"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mpol"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=81158"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=81158"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=81158"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=81158"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=81158"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=81158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}