WP_REST_Controller::add_additional_fields_schema

SummerySummery

Adds the schema from additional fields to a schema array.

Syntax

WP_REST_Controller::add_additional_fields_schema( array $schema )

DescriptionDescription

The type of object is inferred from the passed schema.

ParametersParameters

$schema

(array) (Required) Schema array.

ReturnReturn

(array) Modified Schema array.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top