Automattic\WooCommerce\Admin\API
Options::get_item_schema()
Get the schema, conforming to JSON Schema.
Method of the class: Options{}
No Hooks.
Return
Array
.
Usage
$Options = new Options(); $Options->get_item_schema();
Options::get_item_schema() Options::get item schema code WC 9.6.0
public function get_item_schema() { $schema = array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'options', 'type' => 'object', 'properties' => array( 'options' => array( 'type' => 'array', 'description' => __( 'Array of options with associated values.', 'woocommerce' ), 'context' => array( 'view' ), 'readonly' => true, ), ), ); return $this->add_additional_fields_schema( $schema ); }