

Users list page showing highlighted online users with visual indicators
Fullworks Active Users Monitor provides administrators with real-time visibility of logged-in users on your WordPress site. Using WordPress’s native session tokens system, this plugin accurately tracks user login states and provides powerful monitoring tools.
The plugin provides clear visual feedback for online users:
The plugin provides powerful WP-CLI commands for monitoring and automation:
wp active-users list – List all online userswp active-users stats – Display online user statisticswp active-users check <user> – Check if a specific user is onlinewp active-users monitor – Real-time monitoring in terminalwp active-users clear-cache – Clear the online users cacheCheck if any users are online (for scripting):
wp active-users any [--quiet] [--count] [--json]
--quiet – Returns exit code only (0 = users online, 1 = no users online)--count – Returns just the number of online users--json – Returns detailed JSON outputWait until no users are online:
wp active-users wait-clear [--timeout=<seconds>] [--check-interval=<seconds>] [--quiet]
--timeout – Maximum time to wait (default: 300 seconds)--check-interval – How often to check (default: 30 seconds)--quiet – Suppress progress messagesSafe upgrade script:
`bash
!/bin/bash
Only upgrade when no users are online
if wp active-users any –quiet; then
echo “Users are online, postponing upgrade”
else
echo “No users online, safe to upgrade”
wp core update
wp plugin update –all
fi
`
Maintenance with user wait:
`bash
Wait for users to go offline, then perform maintenance
wp active-users wait-clear –timeout=600 && {
wp maintenance-mode activate
wp db optimize
wp cache flush
wp maintenance-mode deactivate
}
`
Monitoring script:
`bash
Get online user count for monitoring dashboard
ONLINE_COUNT=$(wp active-users any –count)
if [ “$ONLINE_COUNT” -gt “100” ]; then
# Send alert about high user activity
echo “High activity: $ONLINE_COUNT users online”
fi
`
These commands make it easy to create maintenance scripts that respect user activity, ensuring updates and maintenance tasks only run when appropriate.
Online status is read from the session data WordPress already keeps. The plugin also stores each user’s most recent login time with their account.
When you enable the audit trail, the plugin records logins, logouts, failed login attempts and expired sessions. Each record holds the username and display name, the IP address and browser user agent of the request, the login method and the time. Failed login attempts are recorded with the username that was tried, even when no such account exists.
Records are deleted after the retention period you choose, and IP addresses are anonymized after the period you choose. The plugin adds suggested text to Settings > Privacy and supports WordPress’s personal data export and erasure tools.
No data is sent to external services.
Developed by Fullworks
Icons and visual elements use WordPress core styles for consistency.