{"id":35661,"date":"2015-04-14T13:11:52","date_gmt":"2015-04-14T13:11:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/user-last-visit\/"},"modified":"2016-12-11T17:34:28","modified_gmt":"2016-12-11T17:34:28","slug":"user-last-visit","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/user-last-visit\/","author":10022364,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"4.2.39","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"User Last Visit","header_author":"","header_description":"","assets_banners_color":"","last_updated":"2016-12-11 17:34:28","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":4.5,"author_block_rating":0,"active_installs":30,"downloads":2458,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.8","0.8.1","0.8.2","1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2641,441,6393,2153,7186],"plugin_category":[51],"plugin_contributors":[84692],"plugin_business_model":[],"class_list":["post-35661","plugin","type-plugin","status-publish","hentry","plugin_tags-logged-in","plugin_tags-multisite","plugin_tags-record","plugin_tags-user","plugin_tags-visit","plugin_category-multisite","plugin_contributors-cnhk_systems","plugin_committers-cnhk_systems"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/user-last-visit.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The plugin keeps record in UNIX timstamp format of the last time each logged in user visits the site. Record for each user is directly\nvisible on the users list table in the admin panel. The plugin also provides some utility function and hook.<\/p>\n\n<h4>Function Description<\/h4>\n\n<p><strong><code>user_last_visit( $user_id = \"current\", $verbose = TRUE );<\/code><\/strong><\/p>\n\n<ul>\n<li><p>Parameters :<\/p>\n\n<ul>\n<li>mixed <code>$user_id<\/code>, the user ID or \"current\" for the current user (logged in user). default: \"current\".<\/li>\n<li>bool <code>$verbose<\/code>, if <code>TRUE<\/code> the result returned is a literal expression of the last visit time. default: <code>TRUE<\/code>. <\/li>\n<\/ul><\/li>\n<li><p>Returned value :<\/p><\/li>\n<\/ul>\n\n<p>If <code>$verbose<\/code> is <code>TRUE<\/code> a string is returned. If <code>$verbose<\/code> is <code>FALSE<\/code> the UNIX timestamp of last visit is returned. When the user is not logged in, or when there is no record yet, the function return <code>FALSE<\/code> if <code>$verbose<\/code> is set to <code>FALSE<\/code>, a string if <code>$verbose<\/code> is <code>TRUE<\/code>.<\/p>\n\n<h4>Filter Hook<\/h4>\n\n<p><strong><code>\"ulv-can-record\"<\/code><\/strong> : located in <code>\".\/includes\/user-last-visit.class.php\"<\/code> around line #24<\/p>\n\n<p>Some users or some pages can be excluded for last visit recording. There is an admin page for that. But you can also add some additional filtering via this hook. This filter hook is applied within a <code>wp_loaded<\/code> action. So you must attach your functions before that (typically on <code>init<\/code>, once the user is authenticated). \nYou can eventually use the <code>User_Last_Visit<\/code> class separately in your theme\/plugin.<\/p>\n\n<h4>Available Translations<\/h4>\n\n<p>Fran\u00e7ais<\/p>\n\n<!--section=installation-->\n<h4>Requirement<\/h4>\n\n<ul>\n<li>Nothing special<\/li>\n<\/ul>\n\n<h4>Manual Installation<\/h4>\n\n<ul>\n<li>Upload the .zip file to wp-content\/plugins\/<\/li>\n<li>Activate the plugin<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><h4>Requirement<\/h4>\n\n<ul>\n<li>Nothing special<\/li>\n<\/ul>\n\n<h4>Manual Installation<\/h4>\n\n<ul>\n<li>Upload the .zip file to wp-content\/plugins\/<\/li>\n<li>Activate the plugin<\/li>\n<\/ul><\/dd>\n<dt>The plugin is installed and activated, but still no last visit time<\/dt>\n<dd><p>By default, record are disabled for everybody, every pages. Verify the plugin's settings. The admin page is on a sub-menu of the \"Settings\" main menu.<\/p><\/dd>\n<dt>It works for some users only<\/dt>\n<dd><p>Records are set only once the plugin is installed and set up. The <strong><em>\"General record exclusion\"<\/em><\/strong> is evaluated first, then the <strong><em>\"User role\"<\/em><\/strong> and finally each <strong><em>\"user ID\"<\/em><\/strong> individually.<\/p>\n\n<p>After the first installation, there is no record yet until the user visit the site (and passes through all exclusion conditions).<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>minor UI improvement<\/li>\n<li>admin js en css versionning<\/li>\n<\/ul>\n\n<p>= 0.8.2\n* fix a bug in non-multisite created by precedent version<\/p>\n\n<h4>0.8.1<\/h4>\n\n<ul>\n<li>fixed some multisite issues.<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>initial release<\/li>\n<\/ul>","raw_excerpt":"The plugin keeps record on each user last visit time using logged-in status, user ID and user meta data. Multisite compatible.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35661"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/cnhk_systems"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35661"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35661"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35661"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35661"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35661"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}