How to Delete Page Revisions?

How do I remove page revisions and never see them again when I edit any page?

People told me to add this code to the top of the page to wp-config.php

I cannot find this file. I need to add it to my children theme ethos stack
define( ‘WP_POST_REVISIONS’, false );

Https://www.thosecrazyvegans.net
Thanks

Hello @michaellanfield,

Thanks for writing in!

You can find wp-config.php file under root of WordPress installation directory. https://codex.wordpress.org/Editing_wp-config.php

Thanks.

Hello. Yes I found it and added the code, but still doesn’t work. I would like all new and old revisions to be deleted. Thanks.

Hi There,

Please take a look at this article: https://woorkup.com/delete-old-wordpress-revisions-db/.

Hope it helps :slight_smile:

I don’t get it. I am confused

Hi there,

You have to follow the instructions given from that URL.

Thanks!