CALL (239) 961-8285
ENDURTECH
  • Web Services
    • Web Design
      • Design and Development
      • Web Consulting and Tutoring
      • Hosting and Maintenance
      • Project Portfolio
    • Media
      • Photo and Audio, Video Editing
      • Social Media Management
      • All Web Related Services
    • Marketing
      • Digital Marketing and Branding
      • Search Engine Optimization
    • Client Portal
      • Remote Web Support
      • Web Services Payment
      • Scheduled Payments
  • Tech Support
    • Services
      • Computer Support and Repair
      • Data Backup and Recovery
      • Computer Security, Virus Removal
      • Computer Networking Support
      • Computer Consulting & Tutoring
      • All Technology Related Services
    • Blockchain
      • Blockchain Technology
      • Cryptocurrency Articles
    • Client Portal
      • Remote PC Support
      • Remote Monitoring & Management
      • Tech Services Payment
  • Articles
  • About
  • Talk to Me
  • Menu Menu

How to Limit Number of WordPress Revisions

Apache, PHP, Snippet, Web Hosting, Web Site Support, WordPress

By default, WordPress saves every change you make to a post or page as a revision.

While this is great for version control, it can quickly bloat your database—especially on long-form content or frequently edited pages.

In fact too many revisions can slow down your admin dashboard, cause memory issues with certain page builders (like Avada or Elementor) as well as lead to database bloat over time.

This article is a quick reference for how I automatically limited the number of stored WordPress revisions.

Limiting WordPress Revisions

To control how many revisions WordPress stores, you’ll need to edit your wp-config.php file.

Step 1: Access Your Web Server

Use FTP, cPanel File Manager, or SSH to access your WordPress root directory. Open the wp-config.php file in a text editor.

Step 2: Locate the Custom Values Section

Find this comment in the file:

/* Add any custom values between this line and the “stop editing” line. */

Step 3: Add the Revision Limit

Below that line, add the following code:

define( 'WP_POST_REVISIONS', 10 ); // Limits post revisions to 10

You can change 10 to any number that suits your workflow.

Optional: Add a Safety Check

To avoid conflicts with plugins or themes that may define this constant elsewhere, wrap it in a conditional:

if ( ! defined( 'WP_POST_REVISIONS' ) ) {
define( 'WP_POST_REVISIONS', 10 );
}

 

Disable Revisions Entirely

While not recommended, if you want to completely disable revisions use:

define( 'WP_POST_REVISIONS', false ); // Disables all post revisions

Disabling revisions means you won’t be able to roll back changes. I recommend limiting rather than disabling them.

 

Bonus Tip: Clean Up Existing Revisions

Limiting future revisions won’t remove existing ones. To clean up old revisions:

  • Use a plugin like WP-Optimize or Advanced Database Cleaner
  • Or run a SQL query via phpMyAdmin:

DELETE FROM wp_posts WHERE post_type = "revision";

Always back up your database before running queries.

 

Conclusion

I hope my article on how to limit the number of revisions WordPress keeps for pages and posts. I welcome your thoughts, questions or suggestions regarding this article.

You may support my work and future improvements by sending me a tip using your Brave browser or by sending me a one time donation using your credit card.

Let me know if you found any errors within my article or if I may further assist you by answering any additional questions you may have.

 

November 14, 2025
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on LinkedIn
  • Share on Reddit
  • Share by Mail
https://endurtech.com/wp-content/uploads/2018/04/wordpress-content-management-system.jpg 512 512 Manny https://endurtech.com/wp-content/uploads/2018/04/endurtech-logo.png Manny2025-11-14 15:07:422026-03-09 15:47:02How to Limit Number of WordPress Revisions
Search Search

CONNECT WITH US

This field is for validation purposes and should be left unchanged.
Engagement*

Want to say, "thanks"?
Leave me a review on Facebook and/or Google.

You can send me a tip using your Brave browser. Get Brave!

Only used to send you a receipt.
Include a Message
Popular
  • Windows Logo
    Second Monitor on Windows 10 Resets After SleepJuly 2, 2020 - 6:30 am
  • Windows Logo
    How to Disable the F1 Help Key in Windows 10April 15, 2021 - 2:40 pm
  • Cortana Logo
    How to Disable Microsoft’s CortanaApril 6, 2021 - 9:00 am
  • Firefox Logo
    How to Remove All Passwords from Lockwise in FirefoxMarch 26, 2020 - 11:00 am
Recent
  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar Err...July 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

STAY IN TOUCH

ENDURTECH Web Design Company Naples, Florida

Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Learn More & Connect

Search Search
ENDURTECH Logo
Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Latest Articles

  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar ErrorJuly 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

Recent Projects

  • Jewelry Website Gems of Note
    Gems of NoteNovember 15, 2019 - 10:16 pm
  • Gift Store Facebook Business Page Cover Video
    Gift Store Facebook Business Page Cover VideoApril 13, 2019 - 3:58 pm
  • Toledo Yoga BrandBot Footer Integration
    Toledo YogaApril 9, 2019 - 7:26 am
  • Lawyer Association Website with Member Portal
    National Employment Lawyers Association, Florida ChapterFebruary 26, 2019 - 8:00 am

Business Details

Mondays - Fridays
9:00 am - 5:00 pm
Eastern Standard Time
After hours by appointment

SUPPORT PHONE

(239) 961-8285

MAILING ADDRESS

59 Logan Ln.
Lynchburg, VA 24502

Copyright © 2026 ENDURTECH ® All Rights Reserved. Legal
Link to: Fix Missing PaperPort Image Printer 64-bit Link to: Fix Missing PaperPort Image Printer 64-bit Fix Missing PaperPort Image Printer 64-bitKofax PaperPort Image Printer Link to: Removing New Context Menu Items in Windows Link to: Removing New Context Menu Items in Windows Removing New Context Menu Items in Windows 10Removing New Context Menu Items in Windows
Scroll to top Scroll to top Scroll to top