All WordPress snippets
WordPress

Turn Off Post Revisions Entirely

Stops WordPress from saving a new revision every time you update a post or page.

php
define( 'WP_POST_REVISIONS', false );

WordPress normally keeps a copy of a post or page every time you save it, so you can roll back to an earlier version later. You can turn that off completely, or cap it at a fixed number instead (see the related snippet for that version).

Where it goes:

Add the line above to your wp-config.php.

Want your own copy? Fork this repo and build your own snippet collection. Fork on GitHub →