WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

OnboardingThemes::get_item_schema() public WC 1.0

Get the schema, conforming to JSON Schema.

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

No Hooks.

Return

Array. Nothing.

Usage

$OnboardingThemes = new OnboardingThemes();
$OnboardingThemes->get_item_schema();

Code of OnboardingThemes::get_item_schema() WC 5.3.0

<?php
public function get_item_schema() {
	$schema = array(
		'$schema'    => 'http://json-schema.org/draft-04/schema#',
		'title'      => 'onboarding_theme',
		'type'       => 'object',
		'properties' => array(
			'slug'   => array(
				'description' => __( 'Theme slug.', 'woocommerce' ),
				'type'        => 'string',
				'context'     => array( 'view', 'edit' ),
				'readonly'    => true,
			),
			'name'   => array(
				'description' => __( 'Theme name.', 'woocommerce' ),
				'type'        => 'string',
				'context'     => array( 'view', 'edit' ),
				'readonly'    => true,
			),
			'status' => array(
				'description' => __( 'Theme status.', 'woocommerce' ),
				'type'        => 'string',
				'context'     => array( 'view', 'edit' ),
				'readonly'    => true,
			),
		),
	);

	return $this->add_additional_fields_schema( $schema );
}