How does one reduce the number of stored revision (e.g. 5 max) for post types that support revisions?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
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. |
|||||||||||
|
|
@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 |
|||
|
|
