Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a possibility to get the count of users currently logged in and display it somewhere?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You can get the logged in users using wp_get_current_user(); . http://codex.wordpress.org/Function_Reference/wp_get_current_user

But your probably better off just using a plugin or looking at the the following plugins code. http://wordpress.org/extend/plugins/wp-useronline/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.