Is it possible to get a list of logged in users in Wordpress?
Thank you
Yes. There is a plugin for that: "WP-OnlineUsers". You can find this plugin here: http://lesterchan.net/portfolio/programming/php/
If you want the PHP code to do the same, just look at the source of this plugin.
来源:https://stackoverflow.com/questions/3802525/list-of-logged-in-users-in-wordpress