Automattic\WooCommerce\StoreApi\Schemas\V1

AbstractSchema::get_endpoint_args_for_item_schema()publicWC 1.0

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() 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;
}