Admin Actions Log
Log admin logins and plugin/theme installs, activations, deactivations, deletions to a plain text file
by Torwald45 · github.com/torwald45/wp-snippet-admin-actions-log · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/torwald45/wp-snippet-admin-actions-log/archive/refs/heads/main.zipFrom the readme
WP Snippet: Admin Actions Log
Logs admin logins and plugin/theme installs, activations, deactivations, deletions to a plain text file.
Features
- Logs admin user logins
- Logs plugin activations, deactivations, deletions
- Logs plugin and theme installs and updates
- Logs theme switches
- Works as a regular plugin or mu-plugin
- No database writes - plain text log file
Requirements
- WP 5.0 or higher
- PHP 7.4 or higher
- Web server must have write access to the log directory
Installation
1. Open admin-actions-log.php
2. Set the log file path in the TORWALD45AALLOGFILE constant
3. Make sure the directory exists and is writable by the web server
4. Upload to wp-content/plugins/ or wp-content/mu-plugins/
5. Activate (not required for mu-plugins)
Log format
[2026-04-04 06:56:17 UTC] [username] plugindeleted | query-monitor/query-monitor.php
[2026-04-05 08:25:14 UTC] [username] login
Changelog
See CHANGELOG.md for version history.
License
GPL v2 or later
Author
Torwald45 (https://github.com/Torwald45)