=== Activity Track - User Activity Log === Contributors: ujimoto Tags: user activity log, activity log, audit trail, wordpress security, login monitor Requires at least: 6.4 Tested up to: 6.9 Requires PHP: 8.0 Stable tag: 1.0.7 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html User activity log for WordPress — track logins, edits, and admin actions with real-time alerts, audit trail, and AI-powered summaries. == Description == **Activity Track – User Activity Log** - Track every user action in WordPress with a real-time User Activity Log. Get instant alerts, AI insights, and full audit trails to keep your site secure. It combines **real-time activity tracking**, **AI-driven analysis**, and **customizable notifications** to help you quickly investigate issues, monitor security, and understand what users do on your site. = What This Plugin Logs (at a glance) = * **User logins & logouts** (success and failed attempts) * **Post/page changes** (create, update, delete, status changes) * **Plugin & theme actions** (activate, deactivate, install, update) * **User & role changes** (add, remove, capability/role updates) * **Media & downloads** (uploads, deletions) * **Settings changes** (options updated) * **WooCommerce orders** (new orders, status changes, refunds, trashed and deleted orders) = Who It’s For = * **Agencies managing multiple client sites * **Security teams monitoring user actions * **Content teams needing transparency and accountability * **Site owners who want visibility into their site’s health = Why Choose This Activity Log Plugin = * **Accurate audit trail**: designed for admins who need trustworthy logs. * **Fast & lightweight**: minimal overhead; indexed tables keep queries quick. * **Actionable alerts**: email/Slack rules so you know about critical events instantly. * **Privacy controls**: IP anonymization and hashing options (Pro) for GDPR/CCPA. = Core Features (Free) = * 🔍 **Real-Time Activity Logging** Capture every key event (logins, content edits, downloads, failed attempts, etc.) as it happens. * 🔔 **Custom Notifications** Trigger alerts based on user roles, specific actions, IP ranges or threshold events via email or Slack. * 📊 **Reports & Statistics** View detailed dashboards and exportable reports on activity trends, top users, and security events. * 🔒 **Multisite Compatible** Single-site or network-wide deployment—centralized control for multisite installs. * 📥 **CSV & PDF Exports** Download detailed activity reports for compliance, audit or sharing. == GET SUPPORT AND PRO FEATURES == Get professional support and more features with [Activity Track PRO](https://activitytrack.ai) == Pro Features (Optional Upgrade) == * 🤖 **AI-Driven Summaries** Get natural-language overviews of activity trends, anomalies and key insights without lifting a finger. * 🌐 **VPN & Proxy Detection** Automatically flag or exclude traffic coming from known VPNs, proxies or TOR nodes. * 🔒 **IP Anonymization & Hashing** Meet GDPR/CCPA requirements by masking or hashing visitor IP addresses. * 🗂️ **Grouped Activity Logs** Consolidate repeated events into single entries with frequency counts for cleaner analysis. * ⏱ **Advanced Time Filters** See data for the last 24 hours, 7 days, 30 days or any custom interval. * 🚨 **Unlimited Notification Rules** Create as many email notifications as you need—no caps. * 🛠 **Priority Email Support** Get fast, expert help whenever you need it. == Installation == 1. Upload the `activity-track` folder to `/wp-content/plugins/`. 2. Activate **Activity Track** via the **Plugins** screen in WordPress. 3. Go to **Settings → Activity Track** and configure your tracking preferences. 4. (Optional) Upgrade to **PRO** on our [pricing page](https://activitytrack.ai/pricing/) to unlock AI summaries, VPN detection, unlimited rules, and more. == Source Code & Human-Readable Files == We include both the original (human-readable) and the minified assets in this ZIP so you can review or fork them directly. — **JavaScript sources** (in `assets/admin/js/`): • `flowbite.js` – original Flowbite source (upstream: https://github.com/themesberg/flowbite) • `flowbite.min.js` – minified Flowbite • `atk.notifications.js` – our plugin’s notifications logic (un-minified) • `atk.settings.js` – our plugin’s settings page logic (un-minified) — **CSS sources** (in `assets/admin/css/`): • `tailwind-admin.css` – compiled Tailwind CSS for admin pages (un-minified) • `atk.custom.css` – plugin custom overrides (un-minified) • `atk.notifications.css` – notification panel styles (un-minified) • `atk.settings.css` – settings page styles (un-minified) — **Production assets enqueued** by the plugin: • all `.min.js` files from `assets/admin/js/` • all `.css` files from `assets/admin/css/` == Updating Flowbite == When you want to bump to the latest Flowbite: 1. **Install or update Flowbite** From your plugin root, run: npm install flowbite 2. **Copy the JS files** Overwrite the ones in your plugin: cp node_modules/flowbite/dist/flowbite.js assets/admin/js/flowbite.js cp node_modules/flowbite/dist/flowbite.min.js assets/admin/js/flowbite.min.js 3. **Verify & Commit** - `flowbite.js` is the human-readable source. - `flowbite.min.js` is the minified, production file. Load your plugin in WP Admin and confirm all interactions still work. == Frequently Asked Questions == = Will this slow down my site? = No. The activity logger is optimized to be lightweight. It writes concise entries and uses indexed database tables to keep reads fast, so typical sites will not notice any performance impact. = What events does the activity log record? = Logins/logouts, failed logins, post and page edits, plugin/theme activation or updates, user/role changes, media uploads/deletions, and key settings updates. You can filter or export the audit trail as needed. = Where are the logs stored? = Logs are stored in your WordPress database. You control retention via settings; export to CSV/PDF is available for audits and compliance. = What versions of WordPress and PHP are supported? = Requires **WordPress 6.2+** and **PHP 8.0+**. Fully tested up to **WordPress 6.4**. = How do I upgrade to the PRO features? = Visit **Settings → Activity Track → Pro Settings**, enter your license key, and unlock AI summaries, VPN/Proxy detection, and unlimited notification rules. = Can I track activity across a multisite network? = Yes! The plugin is built to support multisite. Install network-wide or enable on individual sites as needed. = Is user data stored safely? = We respect privacy—IP anonymization, hashing, and GDPR/CCPA compliance options are available in Pro Settings. == Screenshots == 1. **Dashboard Overview** — live-feed User Activity Log of recent actions and events. 2. **Notification Rules** — build custom triggers by role, action. 3. **Notification Report** — view activity notifications reports. 4. **Settings** — configure tracking options, IP anonymization, and more. == Changelog == = 1.0.7 = * Added WooCommerce logging for trashed and permanently deleted orders. * Fixed missing order links in WooCommerce log entries on stores using High-Performance Order Storage (HPOS). * Fixed draft WooCommerce orders being logged as new orders (unfinished checkouts and unsaved admin orders are now skipped). * Fixed WooCommerce events from payment gateways or cron being misattributed to the customer instead of the system. * Fixed duplicate log entry when a full refund also changed the order status. = 1.0.6 = * Fixed tooltip display issue in the activity log. = 1.0.5 = * Added 'Options' and 'WooCommerce' activity types for better tracking. * Improved activity log formatting for new activity types. = 1.0.4 = * Fixed UI issue in settings. * Improved UI on notifications. = 1.0.3 = * Fixed UI issue on notifications. = 1.0.2 = * Fixed multisite compatibility issues. * Fixed plugin activation/deactivation time out errors. = 1.0.1 = * UI improvements for settings and notifications. = 1.0.0 = * Initial stable release. * Core real-time tracking, logging, and notifications. == Upgrade Notice == = 1.0.0 = First official stable launch—be sure to back up your settings before upgrading from a dev build. == License == This plugin is released under the [GPLv2 (or later)](https://www.gnu.org/licenses/gpl-2.0.html). Free to use, modify, and redistribute.