WP_REST_Post_Statuses_Controller::prepare_item_for_response

SummerySummery

Prepares a post status object for serialization.

Syntax

WP_REST_Post_Statuses_Controller::prepare_item_for_response( stdClass $status, WP_REST_Request $request )

ParametersParameters

$status

(stdClass) (Required) Post status data.

$request

(WP_REST_Request) (Required) Full details about the request.

ReturnReturn

(WP_REST_Response) Post status data.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top