Skip Navigation

[Résolu] I want to display all currently logged in users in a view.

This support ticket is created Il y a 7 années et 3 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Marqué : ,

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par peterJ-3 Il y a 7 années et 3 mois.

Assisté par: Luo Yang.

Auteur
Publications
#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.