WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp revisions to keep

Description

Determine how many revisions to retain for a given post. By default, an infinite number of revisions are stored if a post type supports revisions.

Parameters

$post
(object) (required) The Post object.
Default: None

Return

(int) 
The number of revisions to keep.

Usage

 <?php  ?> 

Example

Description text

Example code

Change Log

Source File

wp_revisions_to_keep() is located in wp-includes/revision.php.

Related

Function ref links

This article is marked as in need of editing. You can help Codex by editing it.
This page is marked as incomplete. You can help Codex by expanding it.