• Stars
    star
    308
  • Rank 135,712 (Top 3 %)
  • Language
    PHP
  • Created over 11 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🔍🕵️‍♀️ WordPress audit log that track user changes in WordPress admin using a nice activity feed.

logo Simple History

Plugin rating: 5 stars Number of active installs: over 100K Number of monthly downloads

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

Simple History screenshot

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

Simple History screenshot

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.

Simple History screenshot

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.

More Repositories

1

WordPress-Simple-Fields

WordPress plugin that extend Custom Fields to include textareas, WYSIWYG-editor, files, attachments, well basically anything
PHP
88
star
2

memcachy

memcache or memcached autodetect object cache backend for wordpress
PHP
26
star
3

Developer-Loggers-for-Simple-History

Loggers for WordPress logger plugin Simple History that are useful for developers during development of a site or to maintain a live site.
PHP
16
star
4

WordPress-CMS-Tree-Page-View

Tree view of all your pages and custom posts in WordPress. Edit, view, add and search pages, and use drag and drop pages to rearrange the order with this easy to use plugin.
JavaScript
13
star
5

gardener

🏡 🌳 🌻 Cleans up dirty WordPress admin and frontend. It's your WordPress Gardener.
PHP
11
star
6

texttv.nu

Mobilappen för SVT Text TV-sajten texttv.nu utvecklas här.
JavaScript
9
star
7

text-tv-telnet-server

A telnet server for Swedish teletext service | En telnet-server för SVT Text TV
JavaScript
7
star
8

saveAndBackup-for-Coda

Plugin for the Coda editor on OS X. Saves local backups of your files on each save.
Perl
7
star
9

nvweb

(work in progress) web based nv/nvalt
Vue
5
star
10

brottsplatskartan-web

🚓 🗺 Webbplatsen brottsplatskartan.se visar senaste händelserna från Polisen utritat på karta.
JavaScript
5
star
11

texttv.nu-website

Webbplatsen https://texttv.nu.
PHP
2
star
12

bonny

2
star
13

bonnys-wordpress-stuff

Perhaps the home of some of my wordpress codie stuffie thingies
JavaScript
2
star
14

jQuery-WordPress-Plugin-Widget

jQuery plugin to show WordPress plugin information
JavaScript
1
star