W3cubDocs

/WordPress

apply_filters( 'wp_revisions_to_keep', int $num, WP_Post $post )

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

Description

Overrides the value of WP_POST_REVISIONS.

Parameters

$num

(int) Number of revisions to store.

$post

(WP_Post) Post object.

Source

File: wp-includes/revision.php

View on Trac

Changelog

Version Description
3.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_revisions_to_keep