How to Limit WordPress Post Revisions

Manuel campos

To limit the number of post revisions in WordPress, you can use the define() function in your wp-config.php file to set the maximum number of revisions that are allowed for each post.

Here’s an example of how you can set the maximum number of revisions to 3:

define('WP_POST_REVISIONS', 3);
Wanna buy me a Coffee?
JM
About me
I am José Manuel. I am writing about things I know and things that I am learning about WordPress. I hope you find the content of this blog useful.
Linktree
Care for Site Speed?
I think you can’t go wrong with Cloudways, CloudFlare, and Perfmatters.
Perfmatters Cloudways

WPSurfer.com

Resources to host, secure, speed up, rank, and monetize your WordPress sites.
Plugins
Services
Connect
LinkedIn
Facebook
LinkTree