Retrieves an array of endpoint arguments from the item schema for the controller.
Parameters
$method
stringoptional- 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 onEDITABLE
requests.Default:
WP_REST_Server::CREATABLE
Source
public function get_endpoint_args_for_item_schema( $method = WP_REST_Server::CREATABLE ) {
return rest_get_endpoint_args_for_schema( $this->get_item_schema(), $method );
}
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.