rest_get_endpoint_args_for_schema


rest_get_endpoint_args_for_schema ( $schema, $method = WP_REST_Server::CREATABLE )

Parameters:
  • (array) schema The full JSON schema for the endpoint.
  • (string) method Optional. HTTP method of the endpoint. The arguments for `CREATABLE` endpoints are checked for required values and may fall-back to a given default, this is not done on `EDITABLE` endpoints. Default WP_REST_Server::CREATABLE.
Returns:
  • (array) The endpoint arguments.
Defined at:

Description

Retrieves an array of endpoint arguments from the item schema and endpoint method.

Related Functions

rest_get_route_for_term, rest_get_best_type_for_value, get_admin_users_for_domain, rest_get_avatar_urls, rest_get_route_for_post

Top Google Results

User discussions

wpseek mobile