WP_REST_Controller::get_endpoint_args_for_item_schema

SummerySummery

Retrieves an array of endpoint arguments from the item schema for the controller.

Syntax

WP_REST_Controller::get_endpoint_args_for_item_schema( string $method = WP_REST_Server::CREATABLE )

ParametersParameters

$method

(string) (Optional) HTTP method of the request. The arguments for CREATABLE requests are checked for required values and may fall-back to a given default, this is not done on EDITABLE requests.

Default value: WP_REST_Server::CREATABLE

ReturnReturn

(array) Endpoint arguments.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top