int $num, WP_Post $post )
Filters the number of revisions to save for the given post.
Overrides the value of WP_POST_REVISIONS.
Number of revisions to store.
- By default, an infinite number of revisions are stored if a post type supports revisions.
- Note that the filter callback functions must return a value after it is finished processing or the revisions will be empty.
View all references
$num = apply_filters( 'wp_revisions_to_keep', $num, $post );