WP_REST_Controller::get_fields_for_response

SummerySummery

Gets an array of fields to be included on the response.

Syntax

WP_REST_Controller::get_fields_for_response( WP_REST_Request $request )

DescriptionDescription

Included fields are based on item schema and _fields= request argument.

ParametersParameters

$request

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

ReturnReturn

(array) Fields to be included in the response.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.9.6 Introduced.
Scroll to Top