WordPress plugin intelligence profile

User Last Visit

The plugin keeps record on each user last visit time using logged-in status, user ID and user meta data. Multisite compatible.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.2
Current version1.0
WordPress coverageTested up to WordPress 4.2
Minimum stackWP 3.8 · PHP —
Directory statusactive
Last directory update11 Dec 20169y ago
Active installations30Adoption metric — not a quality score
WordPress.org rating4.5 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records User Last Visit version 1.0 as active, updated 9y ago and tested up to WordPress 4.2.

Overview

About this plugin

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

visible on the users list table in the admin panel. The plugin also provides some utility function and hook.

Function Description

user_last_visit( $user_id = "current", $verbose = TRUE );

-

Parameters:

  • mixed $user_id, the user ID or “current” for the current user (logged in user). default: “current”.
  • bool $verbose, if TRUE the result returned is a literal expression of the last visit time. default: TRUE.

-

Returned value:

If $verbose is TRUE a string is returned. If $verbose is FALSE 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 FALSE if $verbose is set to FALSE, a string if $verbose is TRUE.

Filter Hook

php" around line #24

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 wp_loaded action. So you must attach your functions before that (typically on init, once the user is authenticated).

You can eventually use the User_Last_Visit class separately in your theme/plugin.

Available Translations

Français

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • logged in
  • multisite
  • record
  • user
  • visit
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.2

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.2.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.2
Minimum requirementsWordPress 3.8 · PHP not listed
Update activity11 Dec 20169y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.