
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 – 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=] [--check-interval=] [--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.
This plugin does not collect or store any personal data beyond what WordPress already tracks for logged-in users. It only reads existing session data to determine online status. No data is sent to external services.
Developed by Fullworks
Icons and visual elements use WordPress core styles for consistency.