描述
Bat Activity Log helps site owners and administrators understand what changed, who changed it, and when it happened.
The plugin records activity across users, content, media, comments, plugins, themes, settings, updates, privacy workflows, and other core WordPress operations. Logs are stored in a custom indexed table for fast filtering and large datasets.
Key features
- Track logins, logouts, failed logins, profile changes, registrations, role changes, and password updates.
- Record post, page, media, comment, taxonomy, menu, widget, and settings activity.
- Monitor plugin, theme, and WordPress update activity.
- Filter logs by event type, action, severity, user, object, IP address, and date range.
- Use saved views, quick filters, bulk actions, CSV export, and a structured log detail drawer.
- Configure retention cleanup, privacy controls, alert rules, and scheduled reports.
- Verify log integrity with a tamper-evident hash chain.
- Use WP-CLI commands for stats, cleanup, export, repair, reporting, benchmarking, and integrity verification.
Event coverage
Bat Activity Log currently covers:
- User authentication and account events
- Content and revision events
- Media library activity
- Comment activity
- Plugin and theme lifecycle events
- Core, update, and database upgrade events
- Settings, widget, permalink, and menu changes
- Privacy request and erasure workflow events
- File editor changes
- WooCommerce events when WooCommerce is active
- Supported form submission events for Contact Form 7, Gravity Forms, WPForms, and Elementor Pro Forms
Integrity and privacy
Each log row includes integrity metadata that can be verified from the Tools screen or WP-CLI. Privacy controls include IP logging toggles, optional IP anonymization, user-agent logging controls, and WordPress personal data exporter and eraser integration.
WP-CLI examples
wp bat-activity-log statswp bat-activity-log cleanup --days=90 --batch-size=2000wp bat-activity-log export --file=/tmp/activity-log.csvwp bat-activity-log repairwp bat-activity-log verify-integritywp bat-activity-log report --days=7 --format=textwp bat-activity-log benchmark --iterations=10 --per-page=100
屏幕截图

Dashboard with activity summaries and health insights. 
Activity logs screen with filters, saved views, and bulk actions. 
Log detail drawer with structured context and integrity data. 
Settings screen for modules, privacy, retention, and advanced controls. 
Tools screen for export, cleanup, reports, and integrity checks.
安装
- Upload the
bat-activity-logfolder to/wp-content/plugins/. - Activate the plugin through the “Plugins” screen in WordPress.
- Open “Bat Activity Log” from the WordPress admin menu.
- Review the Settings and Tools screens to configure retention, privacy, alerts, and reports.
常见问题
-
Does the plugin create its own database table?
-
Yes. Bat Activity Log stores log rows in a custom
{prefix}bat_activity_logtable with indexes for efficient filtering, pagination, cleanup, and integrity verification. -
Can I control how long logs are stored?
-
Yes. You can define retention days in Settings and run cleanup manually from the Tools screen or WP-CLI.
-
Does uninstall remove all data?
-
Only if you explicitly enable “Delete plugin data on uninstall” in Settings.
-
Can I disable some log types?
-
Yes. You can disable modules and exclude selected roles or event groups to reduce noise.
-
Does this plugin use Composer?
-
No. It ships with a custom PSR-4-style autoloader and does not require Composer in production.
评价
此插件暂无评价。
贡献者及开发者
更新日志
0.3.2
- Replaced auth salt based integrity signing with a plugin-owned secret and added a migration to rebuild the integrity chain safely.
0.3.1
- Fixed reviewer-reported request sanitization boundaries in admin settings handling and file editor event capture.
- Updated the Contributors list to include the plugin owner WordPress.org username.
0.3.0
- Added a refined admin experience with product navigation, dashboard insights, and log detail drawer improvements.
- Added saved views, alert rules, scheduled reports, privacy tools, and integrity tooling.
- Added broader event coverage for privacy, updates, taxonomies, integrations, security, and files.
- Improved build and review readiness for WordPress.org submission.
