wp_revisions_to_keep

SummerySummery

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

Syntax

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

DescriptionDescription

Overrides the value of WP_POST_REVISIONS.

ParametersParameters

$num

(int) Number of revisions to store.

$post

(WP_Post) Post object.

SourceSource

File: wp-includes/revision.php

ChangelogChangelog

Changelog
Version Description
3.6.0 Introduced.
Scroll to Top