You should set WP_POST_REVISIONS
to a fixed number. If you don’t, WordPress will keep an unlimited number of revisions. See function wp_revisions_to_keep()
:
function wp_revisions_to_keep( $post ) {
$num = WP_POST_REVISIONS;
if ( true === $num )
$num = -1;
else
$num = intval( $num );
if ( ! post_type_supports( $post->post_type, 'revisions' ) )
$num = 0;
return (int) apply_filters( 'wp_revisions_to_keep', $num, $post );
}
On the other hand … if you need such a high number of changes you should revisit the edit work flow. There are surely ways to get this number down.
Related Posts:
- revert one revision of a post progmattically via code?
- Is there a way to get a revision count of a post?
- Autosave control in WordPress
- Define maximum number of revisions per post type?
- How can we publish revisions of a post, in addition to showing the latest post?
- Is it possible to set custom post type revision limit inside the theme files?
- Public (Non-Admin) Post Edit/Revision History
- Cannot limit post revisions
- Allow a non-author to see revisions of a post
- Display an old revision of a post in WP front-end theme, are there functions for this?
- Front end URL to restore a post/page
- Schedule Page/CPT Revisions
- Revert multiple posts to an older revision?
- Disable revision access for a specific user role
- Is it possible to publish multiple versions of a single post?
- Preview previous revision without restoring it
- Revisions deos not work on the new update of wordpress 2018 ( WordPress 4.9.5.) .Went to Screen Options but does not appear
- Page edit auto-creates blank revision and editor
- Browsing Revisions in Custom Post Types takes me Empty Post Listing
- Revisions function ¿disabled?
- How can I purge all post revisions except the latest 5?
- Compare first and last post revision
- is there a way to see all changes been done on a wordpress site?
- post visibility history
- How is revision works internally?
- Elegantly prune post revisions
- Enable revisions for custom post type
- How to delete post revisions?
- How to enable revisions for post meta data?
- How to hook in and modify the new revisions UI (3.6+)?
- Storing revisions of metadata for custom post type
- Per Post Type Revision Numbers
- Notice: Constant WP_POST_REVISIONS already defined
- Post revisions don’t save or show up only for custom post types
- WordPress 4.4+ : How to revision CPT + metadata
- Do multiple revisions really slow down WordPress?
- SQL Query for getting all posts in their latest revised state
- Adding revision support to WooCommerce product content
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- A Blog’s changelog
- Exporting revisions
- Will removing revisions positively impact database performance?
- Why is wp_is_post_revision always false?
- Turn revisions off in plugin instead of config.php?
- Is it wise to delete post revisions and autosaves from database?
- How to remove in the wordpress database all posts revisions except the last three?
- Disable revisions for a specific post type only?
- Get the author of the latest revision
- Enabled Revisions to existing custom post type not working WordPress
- Is it possible to display previous post revision?
- Display revision if post status is pending
- New Plugin: Post update pushes a copy as a revision
- Adding a cancel button to edit post screen
- How do I batch create revisions of all posts?
- Manually removing revision post types
- Enable post revisions for a specific post
- WordPress as a web app – always auto-save post and meta data
- Show history of post revisions on front end
- How do I get the intended post type of a revision post?
- Define a wordpress constant through plugin functions?
- How to enable the view of revisions of post in WordPress Api for custom post type?
- Post revisions disappeared (for some posts)
- Get last revision author, author-link and date
- Getting post revision and printing them on the post content site
- How to list the authors of all revisions?
- Only keep the First and Last Revision of a post
- How to hide html tags on revision comparison pages?
- Updating a page won’t have any effect
- Post author for revision not being set on update/insert
- Get latest post revision with wp-query
- Visual (non-HTML) display of post revisions [closed]
- What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?
- Why my wp_posts data is so huge?
- Woocommerce altered my homepage, and I can’t figure out how to revert it [closed]
- How to get post revisions in my custom rest API? [closed]
- Delete post revisions only for a single post
- How do I manage custom meta in post revisions in the Block Editor era?
- “Revision” records in wp_posts have original post type instead of “revision”
- Disable autosave with `function.php` for custom post wordpress?
- Displaying a List of Changes / Updates on the Website Publicly
- Revision featured image
- how long do restored versions take to go live?
- Show Post Revisions on front-end
- How can I change the date format of the revision list?
- How to get the revisions feature back on the classic editor?
- Expose Gutenberg blocks in Post Revisions API endpoint
- Is there a way to determine which user changed a custom field (and when)?
- Too many revision when post status is changes [duplicate]
- How to edit posts/pages without making the change live?
- Clean up customize_changeset in DB
- WordPress doesn’t save a post revision when changing CMB2 custom fields
- Can I check who updated the static front page on WordPress and the time it was done
- Why does uploading a media file a second time restore older version?
- Users can only save their draft once before saving for revision
- How to Determine a Post’s Last Edited Date?
- Revision History for Entire WordPress Site
- How to update the ‘modified_time’ of a post ONLY when content is changed?
- Saving Taxonomies to Post Revisions
- Building WP Web App: Creating a Feed for post revisions
- Saving Revision of post meta key/value on each update_post_meta event