skip to Main Content

WordPress Code Snippets


How to Limit Post Revisions in WordPress for Better Performance

Limit the number of revisions for posts.

if (!defined('WP_POST_REVISIONS')) {
    define('WP_POST_REVISIONS', 5); // Set to desired number of revisions
}


I’m a WordPress developer with 10+ years of experience in WooCommerce and custom plugins. I combine technical expertise with design flair to help you create standout, user-friendly websites. Let’s transform your digital presence!

Best WordPress Hosting
Back To Top
Search