PATH:
home
/
thebhoeo
/
public_html
/
officepoint
/
wp-content
/
plugins
/
woocommerce
/
src
/
StoreApi
/
Schemas
/
V1
<?php declare( strict_types = 1 ); namespace Automattic\WooCommerce\StoreApi\Schemas\V1; use Automattic\WooCommerce\Internal\ProductAttributes\VisualAttributeTermMeta; /** * ProductAttributeTermSchema class. */ class ProductAttributeTermSchema extends TermSchema { /** * The schema item name. * * @var string */ protected $title = 'product-attribute-term'; /** * The schema item identifier. * * @var string */ const IDENTIFIER = 'product-attribute-term'; /** * Visual data property name. * * @var string */ const VISUAL_PROPERTY_NAME = '__experimentalVisual'; /** * Term properties. * * @return array */ public function get_properties() { $schema = parent::get_properties(); $schema[ self::VISUAL_PROPERTY_NAME ] = $this->get_visual_property_schema(); return $schema; } /** * Get the visual data property schema. * * @return array */ private function get_visual_property_schema(): array { return array( 'description' => __( 'Experimental visual swatch data for wc-visual attribute terms.', 'woocommerce' ), 'type' => 'object', 'context' => array( 'view', 'edit' ), 'readonly' => true, 'properties' => array( 'type' => array( 'type' => 'string', 'enum' => array( VisualAttributeTermMeta::TYPE_COLOR, VisualAttributeTermMeta::TYPE_IMAGE, VisualAttributeTermMeta::TYPE_NONE ), ), 'value' => array( 'type' => 'string', ), ), ); } }
[-] ItemSchema.php
[edit]
[-] ShopperListItemSchema.php
[edit]
[-] AbstractAddressSchema.php
[edit]
[-] ErrorSchema.php
[edit]
[-] AbstractSchema.php
[edit]
[-] ProductAttributeTermSchema.php
[edit]
[-] OrderCouponSchema.php
[edit]
[-] ProductReviewSchema.php
[edit]
[-] ProductSchema.php
[edit]
[-] ProductCategorySchema.php
[edit]
[-] CheckoutSchema.php
[edit]
[-] ImageAttachmentSchema.php
[edit]
[-] ProductAttributeSchema.php
[edit]
[-] CartSchema.php
[edit]
[-] ProductBrandSchema.php
[edit]
[-] OrderSchema.php
[edit]
[-] OrderItemSchema.php
[edit]
[-] ShippingAddressSchema.php
[edit]
[+]
..
[+]
AI
[+]
Agentic
[-] CartExtensionsSchema.php
[edit]
[-] CartCouponSchema.php
[edit]
[-] CheckoutOrderSchema.php
[edit]
[-] TermSchema.php
[edit]
[-] OrderFeeSchema.php
[edit]
[-] ShopperListSchema.php
[edit]
[-] BillingAddressSchema.php
[edit]
[-] PatternsSchema.php
[edit]
[-] CartItemSchema.php
[edit]
[-] CartShippingRateSchema.php
[edit]
[-] BatchSchema.php
[edit]
[-] CartFeeSchema.php
[edit]
[-] ProductCollectionDataSchema.php
[edit]