WordPress at Your Fingertips
function is not described

WC_REST_Controller::get_endpoint_args_for_item_schema() public WC 1.0

Compatibility functions for WP 5.5, since custom types are not supported anymore. See @link https://core.trac.wordpress.org/changeset/48306

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

No Hooks.

Return

Array. Endpoint arguments.

Usage

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

Code of WC_REST_Controller::get_endpoint_args_for_item_schema() WC 5.6.0

public function get_endpoint_args_for_item_schema( $method = WP_REST_Server::CREATABLE ) {

	$endpoint_args = parent::get_endpoint_args_for_item_schema( $method );

	if ( false === strpos( WP_REST_Server::EDITABLE, $method ) ) {
		return $endpoint_args;
	}

	$endpoint_args = $this->adjust_wp_5_5_datatype_compatibility( $endpoint_args );

	return $endpoint_args;
}