• Hi,

    I am using WordPress 5.6. I have set this in my wp-config.php file.
    define( 'WP_POST_REVISIONS', 0);

    Whenever I go to edit pages I can still see revisions being created after each edit of the page. I think the above statement has had NO effect. How do I make WordPress stop retaining revisions.

    Regards
    Amal

Viewing 4 replies - 1 through 4 (of 4 total)
  • I just tested this out, and it seems to work on my installation.

    Are you seeing just a single “revision”, or several revisions?

    If you’re seeing just a single “revision”, that might be the autosave feature, which is not disabled when you disable revisions.

    Also, though highly inikely, themes and plugins can override this config.

    Thread Starter amsharma

    (@amsharma)

    I created a new page while this setting was ON and it shows two revisions. I have other page(s) where every time I have Saved or Published a revision has been created and this happened yesterday, at least five times. I don’t understand your statement about “autosave” – are you trying to tell me autosave WILL create a revision, whatever settings I might have?

    Thread Starter amsharma

    (@amsharma)

    Can somebody from WordPress respond? I am definite this doesn’t work. Every change that I am doing is increasing the Revision number despite the setting.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Make sure you’re using the “prime” (apostrophe) key in the define statement. Also, make sure it’s before the “stop editing” comment.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Setting WP_POST_REVISIONS in config has NO effect’ is closed to new replies.