WP_REST_Revisions_Controller::prepare_item_for_response

SummerySummery

Prepares the revision for the REST response.

Syntax

WP_REST_Revisions_Controller::prepare_item_for_response( WP_Post $post, WP_REST_Request $request )

ParametersParameters

$post

(WP_Post) (Required) Post revision object.

$request

(WP_REST_Request) (Required) Request object.

ReturnReturn

(WP_REST_Response) Response object.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top