bonny / wordpress-simple-history
View recent changes made within WordPress, directly on your dashboard or on a separate page.
Fund package maintenance!
bonny
simple-history.com/sponsor
Installs: 4 251
Dependents: 0
Suggesters: 0
Security: 0
Stars: 312
Watchers: 14
Forks: 71
Open Issues: 36
Type:wordpress-plugin
Requires
- php: ^7.4|^8.0
Requires (Dev)
- codeception/module-asserts: ^1.0
- codeception/module-cli: ^1.0
- codeception/module-db: ^1.0
- codeception/module-filesystem: ^1.0
- codeception/module-phpbrowser: ^1.0
- codeception/module-webdriver: ^1.0
- codeception/util-universalframework: ^1.0
- dealerdirect/phpcodesniffer-composer-installer: *
- lucatume/wp-browser: ^3.5
- php-stubs/wp-cli-stubs: dev-master
- phpcompatibility/php-compatibility: *
- phpcompatibility/phpcompatibility-wp: *
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan: ^1.10.0
- rector/rector: ^0.17.0
- szepeviktor/phpstan-wordpress: dev-master
- wp-cli/wp-cli-bundle: ^2.9
- wp-coding-standards/wpcs: ^3.0
- dev-main
- 5.8.0
- 5.7.0
- 5.6.1
- 5.6.0
- 5.5.1
- 5.5.0
- 5.4.4
- 5.4.3
- 5.4.2
- 5.4.1
- 5.4.0
- 5.3.0
- 5.2.0
- 5.1.0
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.17.0
- 4.16.0
- 4.15.1
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.2
- 4.7.1
- 4.7.0
- 4.6.0
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.1
- 4.0.0
- 3.5.1
- 3.5.0
- 3.4.0
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.0
- 2.43.0
- 2.42.0
- 2.41.2
- 2.41.1
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.2
- 2.37.1
- 2.37
- 2.36
- 2.33
- 2.32
- 2.31.1
- 2.31
- 2.30
- 2.29.2
- 2.29.1
- 2.29
- 2.28.1
- 2.28
- 2.27
- 2.26.1
- 2.26
- 2.25
- 2.24
- 2.23.1
- dev-dependabot/npm_and_yarn/axios-1.8.2
- dev-misc-smaller-things
- dev-issue-446-create-write-rest-api-endpoint-and-write-wp-cli-command
- dev-bonny/issue393-bbpress-logger
This package is auto-updated.
Last update: 2025-03-09 11:45:58 UTC
README
A WordPress activity log for what matters
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.
Installation
Download from WordPress.org and activate.
Usage
Viewing history events
This screenshot show the user activity feed:
- It has an active filter/search in use:
- only show changes performed by a specific user
- it only shows event that are of type post and pages and media (i.e. images & other uploads)
- A thumbnail is shown for the image that is uploaded
Events with different severity
Simple History uses the log levels specified in the PHP PSR-3 standard.
Quick diff lets you see what's changed
Events have context with extra details
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.
Plugin API
Developers can easily log their own things using a simple API:
<?php // This is the easiest and safest way to add messages to the log // If the plugin is disabled this way will not generate in any error apply_filters('simple_history_log', 'This is a logged message'); // 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.
Development
Running tests
See the README in tests
directory.
Sponsors
Support the free version of Simple History by becoming a sponsor. You can sponsor using PayPal or becoming a GitHub Sponsor.