WordPress.org

Codex

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

Function Reference/wp get post revision

Description

Retrieve a post revision

Usage

<?php wp_get_post_revision$post ); ?>

Parameters

$post
(int|object) (required) ID or Object of the revision we want to retrieve.
Default: None

Return Values

(array) 
A post object with the revision, or NULL on failure/if the revision doesnt exist.

Notes

Change Log

Since: 2.6

Source File

wp_get_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.