Want to know what WordPress Theme a site is using? Check Out Now!

How to Disable Post Revisions in WordPress?

Do you want to disable post revisions in WordPress?

Many bloggers and website owners use third-party editors like Google Docs, Evernote, and Apple Pages to create, write, and update their content.

wordpress-post-revisions

For them, keeping WordPress post revisions will be of no use and it’s ideal to disable post revisions.

If you are one of them, then you can use the below code snippet to disable the post revisions in WordPress.

/**
 * Disable Post Revisions in WordPress
 */
function maverick_disable_post_revisions_wordpress()
{
    define('WP_POST_REVISIONS', false);
}
add_action('init', 'maverick_disable_post_revisions_wordpress');

Leave a Reply

Your email address will not be published. Required fields are marked *