plugin-icon

User Last Visit

제작자: CNHK SYSTEMS·
The plugin keeps record on each user last visit time using logged-in status, user ID and user meta data. Multisite compatible.
등급
4.5/5
버전
1.0
활성화된 설치 항목
40
최근 업데이트일
Dec 11, 2016

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

"ulv-can-record" : located in "./includes/user-last-visit.class.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

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.2.39
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.