How does one reduce the number of stored revision (e.g. 5 max) for post types that support revisions?
Leave a Reply
You must be logged in to post a comment.
How does one reduce the number of stored revision (e.g. 5 max) for post types that support revisions?
You must be logged in to post a comment.
add to your wp-config.php file the following line:
source: http://codex.wordpress.org/Editing_wp-config.php#Post_Revisions
Just use the plugin. Simpler than screwing around with it, and provides more control.
http://wordpress.org/extend/plugins/revision-control/
@Piet’s answer is the best, but some sql code to remove all old revisions older than 28 days:
SQL and PHP code (for diffrent WP_PREFIX than “wp_”) iworks_revisions.zip
I’m not sure of an automatic way but there is always running the MySQL Query
DELETE FROM wp_posts WHERE post_type = "revision"
(source) I haven’t done it but I’m sure it works. I’d look for a plugin by now there has to be something.