Retrieves an array of endpoint arguments from the item schema for the controller.
$methodstringoptional
CREATABLE requests are checked for required values and may fall-back to a given default, this is not done on EDITABLE requests. Default:WP_REST_Server::CREATABLE
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 );
}
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_controller/get_endpoint_args_for_item_schema