{"id":16549,"date":"2012-01-22T21:10:29","date_gmt":"2012-01-22T21:10:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/last-login\/"},"modified":"2014-09-10T17:15:46","modified_gmt":"2014-09-10T17:15:46","slug":"last-login","status":"publish","type":"plugin","link":"https:\/\/pt-ao.wordpress.org\/plugins\/last-login\/","author":6786718,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2","stable_tag":"1.2","tested":"4.0.38","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Last Login","header_author":"Don Kukral","header_description":"","assets_banners_color":"","last_updated":"2014-09-10 17:15:46","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/yourdomain.com\/","header_author_uri":"http:\/\/yourdomain.com","rating":1,"author_block_rating":0,"active_installs":10,"downloads":2670,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>None.<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"645410","resolution":"1","location":"assets","width":528,"height":169}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[602],"plugin_category":[38],"plugin_contributors":[83863,83862],"plugin_business_model":[],"class_list":["post-16549","plugin","type-plugin","status-publish","hentry","plugin_tags-login","plugin_category-authentication","plugin_contributors-dkukral","plugin_contributors-jboydston","plugin_committers-dkukral","plugin_committers-droyal","plugin_committers-jboydston"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/last-login.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/last-login\/assets\/screenshot-1.png?rev=645410","caption":""}],"raw_content":"<!--section=description-->\n<p>Records logins and provides a function to display the timestamp.<\/p>\n\n<h3>License<\/h3>\n\n<p>Copyright 2010 - 2014 Joe Boydston, Don Kukral<\/p>\n\n<p>This program is free software; you can redistribute it and\/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.<\/p>\n\n<p>This program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.<\/p>\n\n<p>You should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USANone.<\/p>\n\n<!--section=installation-->\n<p>Copy \"last-login\" folder to your WordPress Plugins Directory. \nActivate plugin via WordPress settings.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>How do I display the last login of the current user?<\/dt>\n<dd><p>&lt;php echo get_last_login_current_user(); %gt;<\/p><\/dd>\n<dt>How do I display the last login of a specific user?<\/dt>\n<dd><p>&lt;php echo get_last_login($user_id); %gt;<\/p><\/dd>\n<dt>How do I change the date format of the last login time?<\/dt>\n<dd><p>You can pass the format to either last_login_time_current_user() or last_login_time() functions.<\/p>\n\n<p>Use standard PHP strftime format parameters.\n(http:\/\/php.net\/manual\/en\/function.strftime.php)<\/p>\n\n<p>&lt;php echo get_last_login_current_user($format); %gt;\n&lt;php echo get_last_login($user_id, $format); %gt;<\/p><\/dd>\n<dt>How can I see if the user has a recorded timestamp? (has logged in since plugin activated)<\/dt>\n<dd><p>You can call check_last_login($user_id) or check_last_login_current_user().<\/p>\n\n<p>It will return true if a login has been recorded and false if not.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<p>Verified compatibility with WP 4.0 - fixed call to get_last_login()<\/p>\n\n<h4>1.1<\/h4>\n\n<p>Verified compatibility with WP 3.9.1<\/p>\n\n<h4>1.0<\/h4>\n\n<p>Initial Version<\/p>","raw_excerpt":"Plugin for WordPress that records the last time a user logged in and provides a function to display that date.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16549"}],"author":[{"embeddable":true,"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dkukral"}],"wp:attachment":[{"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16549"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16549"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16549"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16549"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16549"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pt-ao.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}