Sonya Lynn Designs

Blogging McBloggerson

  • About Me
  • My Blog
    • WordPress How To
    • WordPress Plugins
    • WordPress Themes
You are here: Home / Wordpress / Wordpress How To / Wordpress Post Revision Control

WordPress Post Revision Control

September 25, 2016 by Sonya Lynn Designs 1 Comment

Did you know you can save revisions of your WordPress posts and pages to be accessed from the edit screen in the website admin panel?

If you find WordPress revisions not showing, and want to turn them on, you can enable them using a snippet of code in your wp-config.php file. Want them, but don’t need to save more than a most recent version? You can limit how many revisions to save. You can also disable revisions as well.

Editing Your WordPress Configuration File

Edit your website’s wp-config.php with the following snippets of code depending how you want to use revisions. Read more about editing your wp-config.php file.

Disabling Post Revisions

define( 'WP_POST_REVISIONS', false );

Enabling Post Revisions

define( 'WP_POST_REVISIONS', true );

Specify the number of Post Revisions

define( 'WP_POST_REVISIONS', 3 );

Deleting Revisions Using WordPress plugins

If you have revisions turned on and you don’t specify how many revisions to save, you may end up with a copy of every version of every post you’ve ever made. That can cause a lot of data to pile up that’s unnecessary.

A WordPress revisions plugin I found called Optimize Database after Deleting Revisions helps with cleaning up those extra unwanted post revisions, as well as extra database fields that could probably use some cleaning up too. It also enables revisions for pages as well.

After you adjust these settings in the image below, you can choose what database tables you want optimized before running the optimizer.

screen-shot-2016-09-27-at-1-10-44-pm

Another plugin I’ve used is called Thin Out Revisions. It’s a simpler plugin that focuses just on deleting revisions. If most of all your revisions happen in the post draft phase, you can opt to automatically delete all revisions when the post is published. You can also set a daily task to clean up revisions. I like this plugin because it adds the option to choose which revisions you want to delete per post.
screen-shot-2016-09-27-at-1-17-34-pm

Do you use post revisions? What plugin do you use to handle them? Leave a comment below!

Related

Filed Under: Wordpress How To

Comments

  1. Debwork says

    November 15, 2016 at 7:20 am

    I have clients who seasonally revert their content (or layout) so can not “delete revisions older than X days”. I appreciate Thin out Revisions ability to 1) delete/keep selected revisions and 2) the ability to add revision comments.

    Unfortunately Thin Out Revisions plugin hasn’t been updated in 2 years and claims to be “Compatible up to: 4.2.10” so I am trying to find a replacement.

    Have you found any other similar plugin compatible to WordPress current version 4.6.1?

    Thanks

Leave a Reply Cancel reply