WPDev.one
Core Function
View Source on Trac ↗

wp_revisions_to_keep()

wp_revisions_to_keep( mixed $post )

Determines how many revisions to retain for a given post.

Parameters 1 required

Name / Type Description
$post
WP_Post

The post object.

Required

Return Value

(int)
The number of revisions to keep.

Function Information

Since Version
3.6.0
Source File
wp-includes/revision.php
Advertisement