Skip Navigation

[Resolved] I want to display all currently logged in users in a view.

This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by peterJ-3 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#562161

I am creating a forum and want to show a list of users that are currently online.

I can see that there is a parameter named "user_status" but this appears not to be available in the views filter.

#562199

Dear Peter,
Unfortunately, WordPress doesn't provide native online/offline user status methods. So there isn't such a built-in feature within Views plugin, you'll have to implement it by yourself.
The column "user_status" of table "wp_users" is for storing if the user is activated.
See similar thread:
https://wordpress.stackexchange.com/questions/34429/how-to-check-if-a-user-not-current-user-is-logged-in

For your reference.

#564097

Thank you for your help.