Automattic\WooCommerce\StoreApi\Schemas\V1
ProductBrandSchema::get_properties
Term properties.
Method of the class: ProductBrandSchema{}
No Hooks.
Returns
Array
.
Usage
$ProductBrandSchema = new ProductBrandSchema(); $ProductBrandSchema->get_properties();
ProductBrandSchema::get_properties() ProductBrandSchema::get properties code WC 9.9.4
public function get_properties() { $schema = parent::get_properties(); $schema['image'] = [ 'description' => __( 'Brand image.', 'woocommerce' ), 'type' => 'object', 'context' => [ 'view', 'edit', 'embed' ], 'readonly' => true, 'properties' => $this->image_attachment_schema->get_properties(), ]; $schema['review_count'] = [ 'description' => __( 'Number of reviews for products of this brand.', 'woocommerce' ), 'type' => 'integer', 'context' => [ 'view', 'edit' ], 'readonly' => true, ]; $schema['permalink'] = [ 'description' => __( 'Brand URL.', 'woocommerce' ), 'type' => 'string', 'format' => 'uri', 'context' => [ 'view', 'edit', 'embed' ], 'readonly' => true, ]; return $schema; }