WP_REST_Controller::prepare_response_for_collection

SummerySummery

Prepares a response for insertion into a collection.

Syntax

WP_REST_Controller::prepare_response_for_collection( WP_REST_Response $response )

ParametersParameters

$response

(WP_REST_Response) (Required) Response object.

ReturnReturn

(array|mixed) Response data, ready for insertion into collection data.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top