Is it possible to get a list of logged in users in Wordpress?
Thank you
get_users( array $args = array() ): array. Retrieves list of users matching criteria.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With