Automattic\WooCommerce\StoreApi\Schemas\V1
AbstractSchema::get_endpoint_args_for_item_schema()
Retrieves an array of endpoint arguments from the item schema for the controller.
Метод класса: AbstractSchema{}
Хуков нет.
Возвращает
Массив
. Endpoint arguments.
Использование
$AbstractSchema = new AbstractSchema(); $AbstractSchema->get_endpoint_args_for_item_schema( $method );
- $method(строка)
- HTTP method of the request.
По умолчанию: \WP_REST_Server::CREATABLE
Код AbstractSchema::get_endpoint_args_for_item_schema() AbstractSchema::get endpoint args for item schema WC 8.7.0
public function get_endpoint_args_for_item_schema( $method = \WP_REST_Server::CREATABLE ) { $schema = $this->get_item_schema(); $endpoint_args = rest_get_endpoint_args_for_schema( $schema, $method ); $endpoint_args = $this->remove_arg_options( $endpoint_args ); return $endpoint_args; }