WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

ProductCategorySchema::get_properties() public WC 1.0

Term properties.

{} It's a method of the class: ProductCategorySchema{}

No Hooks.

Return

Array.

Usage

$ProductCategorySchema = new ProductCategorySchema();
$ProductCategorySchema->get_properties();

Code of ProductCategorySchema::get_properties() WC 5.7.1

public function get_properties() {
	$schema                 = parent::get_properties();
	$schema['image']        = [
		'description' => __( 'Category 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 in this category.', 'woocommerce' ),
		'type'        => 'integer',
		'context'     => [ 'view', 'edit' ],
		'readonly'    => true,
	];
	$schema['permalink']    = [
		'description' => __( 'Category URL.', 'woocommerce' ),
		'type'        => 'string',
		'format'      => 'uri',
		'context'     => [ 'view', 'edit', 'embed' ],
		'readonly'    => true,
	];
	return $schema;
}