Cette page est également disponible en Français Français

Simple Revisions Delete adds a discreet link within a post submit box to let you purge (delete) its revisions via AJAX. Bulk action is also available.

 

What is a “revision”?

A revision is an earlier version of a post, which is created when you edit a post to keep track of its contents before changes. It is be used to create a change history that allows you to go back in time and see previous edits. It is called content versioning.

 


Why this plugin?

When I work on WordPress sites I tend to save drafts, do post updates, typo corrections (a few too many…), etc. In short, when you work on the content of a site, especially when it is under construction, you tend to save often to watch what happens in front, but each time you update, a new revision of the post is created and a new entry is stored in the database. Basically, imagine that you have 100 posts you have edited 10 times: 100 * 10 = 1,000 registered posts in the database. This represents 900 potentially unnecessary entries that affect the loading time of the site and increase the size of the database.

 


What does it do?

It helps you keep a clean database by removing unnecessary posts revisions. Unlike other similar plugins, it lets you delete only specific posts revisions, not all your site revisions at once. The plugin is perfectly integrated in the WordPress back-end, and uses native core functions to safely delete revisions.

To remove all the revisions at once, I suggest you to use this cool plugin:  Better Delete Revision.

EXTRA: In case you don’t already know, WordPress provides an out-of-the-box option to specify the maximum number of revisions to store for each post. As explained in the CODEX, you can easily achieve that by pasting this simple line in your wp-config file.

 


How does it work?

The plugin adds a discreet link in the post submit box, next to the default revisions counter. When you click on it, it purges the appropriate post revisions via AJAX (No-JS is also supported).

It also adds a bulk action option (see bulk actions dropdown select) in the post/page list view to let you purge revisions of multiple posts at once.
Since v1.3 you can delete a single revision at once (see screenshots).

NOTE: There is no admin page for this plugin – none is needed.

 


Post Types support

The default supported post types are post and page, but you can easily add custom post types or remove default post types with the following hook:

 


Custom user capability

The default capability to purge or remove rivisions is delete_post, but you can override this with the following hook:

 


Screenshots

simple-revisions-delete-screenshot-1

simple-revisions-delete-screenshot-2

simple-revisions-delete-screenshot-3

simple-revisions-delete-bulk-action-b-web

simple-revisions-delete-individual-b-web


Languages

The plugin includes just a few sentences, but you can easily translate them through .MO & .PO files. Currently available languages are:

Become a translator and send me your translation! Contact-me

 

Brice Capobianco

WordPress addict and self-taught. I love to learn and to create, then to share…
Founder of b-website.com