Codex tools: Log in
Contents |
The number of active users in your installation.
The count is cached and updated twice daily. This is not a live count.
<?php get_user_count() ?>
This function does not accept any parameters
<?php $user_count = get_user_count(); echo "There are currently $user_count users on this site."; ?>
Since: 2.7
get_user_count() is located in wp-includes/ms-functions.php