• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WriteNowDesign - Wordpress and Ecommerce Website Design

WordPress, Joomla, Ecommerce Website Design

  • Home
  • Prices/Packages
  • WordPress
  • Services
  • Portfolio
  • Blog
  • About
    • Testimonials
    • Locations
    • Online Payment
  • Contact
  • Show Search
Hide Search

Call 303-907-6133 Email

Disable Wordpress Revisions

Disable WordPress Post Revisions

February 25, 2013 by Pat Fortino

Several versions back, WordPress came up with a great new feature most of us don’t need: Post Revisions. Post Revisions saves a copy of the post every time you update the post. Unfortunately, there is no setting in WordPress to turn off this feature and it can lead to a very bloated database. Luckily, if you don’t mind editing your wp-config.php file, you can easily turn this feature off or limit the number of revisions WordPress saves.

  1. Using a text or html editor, open your wp-config.php file located in the folder containing your WordPress installation.IMPORTANT: Make a backup copy of the wp-config.php file before you start; that way, you can restore the original file if your edit causes a problem.You can also use your cPanel File Manager to edit the wp-config.php file.
  2. Just before the line /* That’s all, stop editing! Happy blogging. */, paste the following code:
    define( 'WP_POST_REVISIONS', false);
  3. If you want to keep x number of revisions, use the following code where 3 is the number of revisions you want to keep:
    define('WP_POST_REVISIONS', 3);
  4. Save wp-config.php and wordpress will use your revision modification.
  5. If you’d like to delete all of the old revisions in the database and turn off revisions, you can install the WordPress Revision Control plugin instead of editing the wp-config.php file.
  • Also see How to Add a Responsive Menu to WordPress Twenty Twelve Template

Comments are closed. If you have information to share, contact me here.

Previous Post: « 500 Server Error Caused by Apple Mail
Next Post: Joomla 3.0 on MAMP: How to Fix Magic Quotes Problem »

Related

Primary Sidebar

Blog Categories

Call Today

Get a Free Quote

303-907-6133

Subscribe to News

News about WordPress, WooCommerce, & Technology

What’s New

  • WPForms Not Sending Notifications
  • Add Terms and Conditions WooCommerce
  • Fix WordPress AMP Validation Errors
  • Use the Classic Editor with Gutenberg Block Editor
  • Add a Message at Top or Bottom of WooCommerce Checkout Page
  • How to Link to a PDF in WordPress

Find Us On…

  • Facebook
  • LinkedIn
  • RSS

Call 303-907-6133 Email

© 2004–2023 · WriteNowDesign · Sitemap · Log in · Return to Top