Automattic\WooCommerce\Admin\API
ProductAttributeTerms::get_item_schema()
Get the Attribute's schema, conforming to JSON Schema.
Метод класса: ProductAttributeTerms{}
Хуков нет.
Возвращает
Массив
.
Использование
$ProductAttributeTerms = new ProductAttributeTerms(); $ProductAttributeTerms->get_item_schema();
Код ProductAttributeTerms::get_item_schema() ProductAttributeTerms::get item schema 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; }