wp_revisions_to_keep

Advertisement

Summery Summery

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

Syntax Syntax

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

Description Description

Overrides the value of WP_POST_REVISIONS.

Parameters Parameters

$num

(int) Number of revisions to store.

$post

(WP_Post) Post object.

Source Source

File: wp-includes/revision.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.