WordPress Autosave einstellen – Revisons
Enabling Global Revisions
If you’re setting up WordPress from scratch, post revisions should be automatically enabled on your site with a default setting of storing every post revision.
If you’re not seeing revisions as an option in your post settings, they’ve almost certainly been switched off at the configuration level. As a first step in working out what’s going on, pop open your wp-config.php file and look for a line like the following:
define( ‚WP_POST_REVISIONS‘, false ); |
You’ve got three basic options when it comes to passing a value into WP_POST_REVISIONS
:
- true or -1: This is the default option in WordPress and makes it store every revision per post.
- false or 0: This removes revisions entirely and limits you to the most recent autosave per post.
- A number greater than zero: This limits your revision count to a specific number and automatically deletes older revisions.
There are two further small items worth pointing out at this stage: you need to set this value above where you define ABSPATH
in your config file, and you also have the option of taking more control over your autosaves with AUTOSAVE_INTERVAL as pictured below.