| 开发者 |
fullworks
alanfuller |
|---|---|
| 更新时间 | 2026年10月1日 05:03 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/ directoryThe plugin uses WordPress's built-in WP_Session_Tokens class to check for active session tokens. This ensures accurate detection regardless of the authentication method used (standard login, SSO, 2FA, etc.). A user counts as online from the moment they log in until they log out or their session expires. WordPress sessions last 2 days, or 14 days with "Remember Me", so a user who closes the browser without logging out stays online until then.
Yes, one table (wp_fwaum_audit_log) for the audit trail, created on activation. Nothing is written to it unless you enable the audit trail. The online-status monitoring uses WordPress's existing session data and needs no custom tables. The table is removed when the plugin is deleted.
Yes. In the plugin settings, you can choose which user roles can see online status in the admin bar and dashboard widget. Administrators always can. The status column on the Users page additionally needs the ability to list users. Developers can override the check with the fwaum_current_user_can_view filter.
The refresh interval is configurable from 15 to 300 seconds. The default is 30 seconds. You can adjust this in Settings > Active Users Monitor.
By default only the connecting address (REMOTE_ADDR) is trusted, because headers such as X-Forwarded-For can be forged by anyone. If your site sits behind a proxy you control, list the header it sets with the fwaum_client_ip_headers filter, for example array( 'HTTP_CF_CONNECTING_IP', 'REMOTE_ADDR' ) behind Cloudflare.
Yes. The plugin uses AJAX for real-time updates, which works independently of page caching. The plugin also implements its own transient caching for optimal performance.
Yes. On multisite each site shows its own members who are online, and each site keeps its own audit trail.
Yes. The plugin automatically detects and supports all custom user roles in addition to WordPress default roles.
Every element has its own CSS class, so you can override the styles in your theme's CSS.
Yes. The plugin includes comprehensive WP-CLI support with commands for monitoring, automation, and scripting. See the WP-CLI Commands section below for details.
No. The plugin is optimized for performance with smart caching, efficient queries, and optional features you can disable if needed.