wp_revisions_to_keep ( $post )
- (WP_Post) post The post object.
- (int) The number of revisions to keep.
- Introduced in WordPress: 3.6.0
- Deprecated in WordPress: —
Determines how many revisions to retain for a given post.By default, an infinite number of revisions are kept.
The constant WP_POST_REVISIONS can be set in wp-config to specify the limit
of revisions to keep.