WP_REST_Revisions_Controller::get_revision

SummerySummery

Get the revision, if the ID is valid.

Syntax

WP_REST_Revisions_Controller::get_revision( int $id )

ParametersParameters

$id

(int) (Required) Supplied ID.

ReturnReturn

(WP_Post|WP_Error) Revision post object if ID is valid, WP_Error otherwise.

SourceSource

File: wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php


			

ChangelogChangelog

Changelog
Version Description
4.7.2 Introduced.
Scroll to Top