WordPress at a glance
function is not described

WP_REST_Revisions_Controller::get_item() public WP 4.7.0

Retrieves one revision from the collection.

{} It's a method of the class: WP_REST_Revisions_Controller{}

No Hooks.

Return

WP_REST_Response/WP_Error. Response object on success, or WP_Error object on failure.

Usage

$WP_REST_Revisions_Controller = new WP_REST_Revisions_Controller();
$WP_REST_Revisions_Controller->get_item( $request );
$request(WP_REST_Request) (required)
Full details about the request.

Changelog

Since 4.7.0 Introduced.

Code of WP_REST_Revisions_Controller::get_item() WP 5.5.1

<?php
public function get_item( $request ) {
	$parent = $this->get_parent( $request['parent'] );
	if ( is_wp_error( $parent ) ) {
		return $parent;
	}

	$revision = $this->get_revision( $request['id'] );
	if ( is_wp_error( $revision ) ) {
		return $revision;
	}

	$response = $this->prepare_item_for_response( $revision, $request );
	return rest_ensure_response( $response );
}