Coder Social home page Coder Social logo

alexclassroom / wp-revisions-control Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethitter/wp-revisions-control

0.0 2.0 0.0 1.03 MB

Control how many revisions are stored for each post type

License: GNU General Public License v2.0

JavaScript 7.21% PHP 80.35% Shell 12.44%

wp-revisions-control's Introduction

WP Revisions Control

Contributors: ethitter
Donate link: https://ethitter.com/donate/
Tags: revision, revisions, admin
Requires at least: 3.6
Tested up to: 5.7
Stable tag: 1.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Control how many revisions are stored for each post type.

Description

WordPress 3.6 allows users to control how many revisions are stored for each supported post type. No longer must you rely on the WP_POST_REVISIONS constant, which applied universally. This plugin provides an interface for this new functionality.

With this plugin enabled, simply visit Settings > Writing to specify the number of revisions retained for each post type.

Why is this helpful? Revisions are stored in the database, and if many are stored, can cause bloat. This bloat may lead to slower queries, which can have a noticeable performance impact. The value of these revisions also depends on what is being tracked. For example, I may want to store every revision of the posts I write, but only desire to keep the latest five versions of each page on my site. Starting in WordPress 3.6, this control is available. WordPress doesn’t provide a native interface to specify revisions quantities, so I wrote this quick plugin to do so.

Thanks to Maria Ramos at WebHostingHub, the plugin is also available in Spanish. Many thanks to her for her efforts!

Development is at https://git.ethitter.com/wp-plugins/wp-revisions-control.

Installation

  1. Upload wp-revisions-control to /wp-content/plugins/.
  2. Activate plugin through the WordPress Plugins menu.
  3. Go to Settings > Writing and set the options under WP Revisions Control.

Frequently Asked Questions

Where do I change the plugin's settings?

Navigate to Settings > Writing in your WordPress Dashboard, and look for the WP Revisions Control section.

Changelog

1.3

  • Add bulk actions to purge excess or all revisions.
  • Introduce unit tests.
  • Conform to coding standards.

1.2.1

  • Introduce Spanish translation thanks to Maria Ramos at WebHostingHub.

1.2

  • Add post-level revision purging and limiting. For any post type that supports revisions, you can now limit the number of revisions retained at a post level.

1.0

  • Initial public release

Upgrade Notice

1.3

Introduces bulk actions for purging revisions, along with unit tests. The plugin also conforms to coding standards.

1.2.1

Introduces Spanish translation thanks to Maria Ramos at WebHostingHub.

1.2

For any post type that supports revisions, you can now limit the number of revisions retained at a post level.

Screenshots

1. The plugin's settings section, found under Settings > Writing.

The plugin's settings section, found under Settings > Writing.

2. The post-level controls provided in version 1.2.

The post-level controls provided in version 1.2.

wp-revisions-control's People

Contributors

ethitter avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.