WordPress at a glance
filter is not described

wp_revisions_to_keep filter-hook . WP 3.6.0

Filters the number of revisions to save for the given post.

Overrides the value of WP_POST_REVISIONS.


add_filter( 'wp_revisions_to_keep', 'filter_function_name_360', 10, 2 );
function filter_function_name_360( $num, $post ){
	// filter...

	return $num;
Number of revisions to store.
Post object.

Where the hook is called

wp-includes/revision.php 540
return (int) apply_filters( 'wp_revisions_to_keep', $num, $post );

Where the hook is used (in WP core)

Использование не найдено.