WP_REST_Search_Controller::prepare_item_for_response

SummerySummery

Prepares a single search result for response.

Syntax

WP_REST_Search_Controller::prepare_item_for_response( int $id, WP_REST_Request $request )

ParametersParameters

$id

(int) (Required) ID of the item to prepare.

$request

(WP_REST_Request) (Required) Request object.

ReturnReturn

(WP_REST_Response) Response object.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top