Home Forums Tutorials and Hints from Users How can i disable post revision?

This topic contains 1 reply, has 2 voices, and was last updated by  scrambler 1 week, 3 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #52388

    alexanderbiscajin
    Participant

    I have use this code exactly same from the tutorial i have seen https://www.wpblog.com/disable-limit-wordpress-post-revisions/ but still having some issues as it’s not working properly or might be i am doing something wrong. Can anyone help me to disable the post revisions ?

     

    define(‘AUTOSAVE_INTERVAL’, 300);
    define(‘WP_POST_REVISIONS’, false);
    define(‘WP_DEBUG”, false);

     

    If I put this code

    define(‘WP_POST_REVISIONS’, false);

    It will stop further revisions,even page revisions? or the autosave occupies space in database? Can anyone guide me Please ?

    #52393

    scrambler
    Moderator

    This really has nothing to do with the theme and should be asked in the WordPress forum.

    From the article, adding the line

    define(‘WP_POST_REVISIONS’, false);

    Will completely disable post revision, so will just have whatever your last edit is.

    If you want a bit of safety, you can specify the number you want to keep, like if you want to keep the last 2 revision, use

    define(‘WP_POST_REVISIONS’, 2);

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.