🔍🕵️♀️ WordPress audit log that track user changes in WordPress admin using a nice activity feed.
A lightweight activity feed plugin for WordPress
Simple History is a WordPress audit log plugin that logs various things that occur in WordPress and then presents those events in a very nice GUI. It's great way to view user activity and keep an eye on what the admin users of a website are doing.
Download from WordPress.org:
This screenshot show the user activity feed:
Simple History uses the log levels specified in the PHP PSR-3 standard.
Each logged event can include useful rich formatted extra information. For example: a plugin install can contain author info and a the url to the plugin, and an uploaded image can contain a thumbnail of the image.
Developers can easily log their own things using a simple API:
// Or with some context and with log level debug: apply_filters( 'simple_history_log', 'My message about something', [ 'debugThing' => $myThingThatIWantIncludedInTheLoggedEvent, 'anotherThing' => $anotherThing ], 'debug' );
// Or just debug a message quickly apply_filters('simple_history_log_debug', 'My debug message');
// You can also use functions/methods to add events to the log SimpleLogger()->info("This is a message sent to the log");
// Add events of different severity SimpleLogger()->info("User admin edited page 'About our company'"); SimpleLogger()->warning("User 'Jessie' deleted user 'Kim'"); SimpleLogger()->debug("Ok, cron job is running!");
You will find more examples in the examples.php file.
$ npm run testto run the tests.
The tests are located in the
tests-folder and Docker is used to create a WordPress environment to run the tests. The Dockerfile used is PHPUnit WordPress Plugin.