WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp get post revision

Contents

Description

Retrieve the post revisions of the current post or of a given post.

Usage

<?php wp_get_post_revision$post ); ?>

Parameters

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

Return Values

(array) 
An array of revisions, or an empty array if none.

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.