Automattic\WooCommerce\Admin\API
ProductAttributeTerms::get_item_schema()
Get the Attribute's schema, conforming to JSON Schema.
Method of the class: ProductAttributeTerms{}
No Hooks.
Return
Array
.
Usage
$ProductAttributeTerms = new ProductAttributeTerms(); $ProductAttributeTerms->get_item_schema();
ProductAttributeTerms::get_item_schema() ProductAttributeTerms::get item schema code WC 8.7.0
public function get_item_schema() { $schema = parent::get_item_schema(); // Custom attributes substitute slugs for numeric IDs. $schema['properties']['id']['type'] = array( 'integer', 'string' ); return $schema; }