WP_REST_Controller::get_endpoint_args_for_item_schema
Retrieves an array of endpoint arguments from the item schema for the controller.
Метод класса: WP_REST_Controller{}
Хуков нет.
Возвращает
Массив. Endpoint arguments.
Использование
$WP_REST_Controller = new WP_REST_Controller(); $WP_REST_Controller->get_endpoint_args_for_item_schema( $method );
- $method(строка)
- HTTP method of the request. The arguments for
CREATABLErequests are checked for required values and may fall-back to a given default, this is not done onEDITABLErequests.
По умолчанию:WP_REST_Server::CREATABLE
Список изменений
| С версии 4.7.0 | Введена. |
Код WP_REST_Controller::get_endpoint_args_for_item_schema() WP REST Controller::get endpoint args for item schema WP 7.0
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 );
}