WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

AbstractSchema::get_endpoint_args_for_item_schema() public WC 1.0

Retrieves an array of endpoint arguments from the item schema for the controller.

{} It's a method of the class: AbstractSchema{}

No Hooks.

Return

Array. Endpoint arguments.

Usage

$AbstractSchema = new AbstractSchema();
$AbstractSchema->get_endpoint_args_for_item_schema( $method );
$method(string)
HTTP method of the request.
Default: \WP_REST_Server::CREATABLE

Code of AbstractSchema::get_endpoint_args_for_item_schema() WC 5.8.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;
}