WordPress.org

Codex

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

Function Reference/wp is post revision

Description

Determines if the specified post is a revision.

Usage

<?php wp_is_post_revision$post ); ?>

Parameters

$post
(int|object) (required) Post ID or post object.
Default: None

Return Values

(boolean|int) 
False if not a revision, ID of revision's parent otherwise.

Change Log

Since: 2.6

Source File

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

Related

See also index of Function Reference and index of Template Tags.
This article is marked as in need of editing. You can help Codex by editing it.