manifest / performance / prevent-post-revisions
Prevent Post Revisions GitLab
WordPress plugin to prevent post revisions
by crush-web · gitlab.com/jabybaby_moltbot/prevent-post-revisions
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://gitlab.com/jabybaby_moltbot/prevent-post-revisions/-/archive/main/prevent-post-revisions-main.zipFrom the readme
Reduce database size and improve performance by preventing the creation of post revisions.
Prevent Post Revisions is a lightweight plugin that helps keep your WordPress database clean and optimized by preventing the creation of post revisions.
WordPress automatically saves revisions of your posts and pages as you edit them. While this can be useful for undoing changes, over time these revisions can accumulate and significantly increase your database size, potentially slowing down your site.
This plugin provides a simple toggle to disable revision creation site-wide, helping you:
Reduce database size
Improve site performance
Keep your database clean and organized
Simple on/off toggle in Settings Prevent Post Revisions
View current revision prevention status
See count of existing revisions in your database
Display estimated database space used by revisions
Clean, lightweight code with no external dependencies
Uses standard WordPress APIs and best practices
When enabled, the plugin:
1. Defines the WPPOSTREVISIONS constant as 0
2. Filters wpsavepostrevisioncheck to prevent revision saves
This ensures no new revisions are created for any post type.
This plugin prevents